Skip to content

Commit

Permalink
Fix #674
Browse files Browse the repository at this point in the history
  • Loading branch information
Saalvage committed Oct 4, 2022
1 parent 4e38208 commit 2bd5148
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doctest/parts/doctest_fwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -1291,9 +1291,9 @@ namespace detail {
template<class T, unsigned N> struct decay_array<T[N]> { using type = T*; };
template<class T> struct decay_array<T[]> { using type = T*; };

template<class T> struct not_char_pointer { static DOCTEST_CONSTEXPR value = 1; };
template<> struct not_char_pointer<char*> { static DOCTEST_CONSTEXPR value = 0; };
template<> struct not_char_pointer<const char*> { static DOCTEST_CONSTEXPR value = 0; };
template<class T> struct not_char_pointer { static DOCTEST_CONSTEXPR bool value = true; };
template<> struct not_char_pointer<char*> { static DOCTEST_CONSTEXPR bool value = false; };
template<> struct not_char_pointer<const char*> { static DOCTEST_CONSTEXPR bool value = false; };

template<class T> struct can_use_op : public not_char_pointer<typename decay_array<T>::type> {};
#endif // DOCTEST_CONFIG_TREAT_CHAR_STAR_AS_STRING
Expand Down

0 comments on commit 2bd5148

Please sign in to comment.