Skip to content

Commit a299743

Browse files
author
Hana Dusíková
committed
replace operator() with ::value in sfinae range check
1 parent e48d995 commit a299743

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/ctre/wrapper.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ template <typename T> class RangeLikeType {
2828
template <typename Y> static auto test(Y *) -> decltype(std::declval<const Y &>().begin(), std::declval<const Y &>().end(), std::true_type());
2929
template <typename> static auto test(...) -> std::false_type;
3030
public:
31-
static inline constexpr bool value = decltype(test<std::remove_reference_t<std::remove_const_t<T>>>( nullptr ))();
31+
static inline constexpr bool value = decltype(test<std::remove_reference_t<std::remove_const_t<T>>>( nullptr ))::value;
3232
};
3333

3434
template <typename RE> struct regular_expression {

single-header/ctre.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2960,7 +2960,7 @@ template <typename T> class RangeLikeType {
29602960
template <typename Y> static auto test(Y *) -> decltype(std::declval<const Y &>().begin(), std::declval<const Y &>().end(), std::true_type());
29612961
template <typename> static auto test(...) -> std::false_type;
29622962
public:
2963-
static inline constexpr bool value = decltype(test<std::remove_reference_t<std::remove_const_t<T>>>( nullptr ))();
2963+
static inline constexpr bool value = decltype(test<std::remove_reference_t<std::remove_const_t<T>>>( nullptr ))::value;
29642964
};
29652965

29662966
template <typename RE> struct regular_expression {

0 commit comments

Comments
 (0)