Skip to content

Commit

Permalink
Fix template keyword ambiguity.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaxyM authored Aug 19, 2024
1 parent 07efe53 commit c22a7eb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/crap/algorithm.d/mismatchtype.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,12 @@ template <template <class, class> class Operator, class First1, class ... Rest1>

template <template <class, class> class Operator, class First1, class ... Rest1> template <class Only2>
inline constexpr typename
//TODO: Add version check if changed by clang.
#if defined(__clang__) || (!defined(__clang__) && defined(__GNUC__) && (__GNUC__ < 10))
crap :: mismatchType <Operator, First1, Rest1...> :: template with <Only2> :: value_type
#else
crap :: mismatchType <Operator, First1, Rest1...> :: with <Only2> :: value_type
#endif
crap :: mismatchType <Operator, First1, Rest1...> :: with <Only2> :: operator () ()
const noexcept
{
Expand All @@ -324,7 +329,11 @@ template <template <class, class> class Operator, class First1, class ... Rest1>
template <class First2, class ... Rest2>
inline constexpr
crap :: mismatchType <Operator, First1, Rest1...> :: with <First2, Rest2...> :: operator typename
#if (!defined(__clang__) && defined(__GNUC__) && (__GNUC__ < 10))
crap :: mismatchType <Operator, First1, Rest1...> :: template with <First2, Rest2...> :: value_type ()
#else
crap :: mismatchType <Operator, First1, Rest1...> :: with <First2, Rest2...> :: value_type ()
#endif
const noexcept
{
return crap :: mismatchType <Operator, First1, Rest1...> :: with <First2, Rest2...> :: value;
Expand All @@ -334,7 +343,12 @@ template <class First2, class ... Rest2>
template <template <class, class> class Operator, class First1, class ... Rest1>
template <class First2, class ... Rest2>
inline constexpr typename
//TODO: Add version check if changed by clang.
#if defined(__clang__) || (!defined(__clang__) && defined(__GNUC__) && (__GNUC__ < 10))
crap :: mismatchType <Operator, First1, Rest1...> :: template with <First2, Rest2...> :: value_type
#else
crap :: mismatchType <Operator, First1, Rest1...> :: with <First2, Rest2...> :: value_type
#endif
crap :: mismatchType <Operator, First1, Rest1...> :: with <First2, Rest2...> :: operator () ()
const noexcept
{
Expand Down

0 comments on commit c22a7eb

Please sign in to comment.