Skip to content

Commit 5357076

Browse files
author
Hana Dusíková
committed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/ctre/atoms_characters.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ namespace ctre {
99
// sfinae check for types here
1010

1111
template <typename T> class MatchesCharacter {
12-
template <typename Y, typename CharT> static auto test(Y*, CharT c) -> decltype(Y::match_char(c), std::true_type());
12+
template <typename Y, typename CharT> static auto test(CharT c) -> decltype(Y::match_char(c), std::true_type());
1313
template <typename> static auto test(...) -> std::false_type;
1414
public:
15-
template <typename CharT> static inline constexpr bool value = decltype(test<T>(nullptr, std::declval<CharT>()))();
15+
template <typename CharT> static inline constexpr bool value = decltype(test<T>(std::declval<CharT>()))();
1616
};
1717

1818

0 commit comments

Comments
 (0)