build: remove use of template member qualifiers

They aren't allowed by clang-19, and don't appear to be necessary for
currently supported compilers.
This commit is contained in:
Danny Robson 2024-08-06 14:43:22 +10:00
parent 02e2262d0a
commit e43535c2a7
2 changed files with 7 additions and 7 deletions

View File

@ -33,7 +33,7 @@ namespace cruft::alloc {
{ {
return { return {
reinterpret_cast<ValueT*> ( reinterpret_cast<ValueT*> (
m_backing.template allocate ( m_backing.allocate (
sizeof (ValueT) * count, sizeof (ValueT) * count,
alignof (ValueT) alignof (ValueT)
) )
@ -46,7 +46,7 @@ namespace cruft::alloc {
void void
deallocate (ValueT *t, size_t count) deallocate (ValueT *t, size_t count)
{ {
return m_backing.template deallocate (t, sizeof (ValueT) * count); return m_backing.deallocate (t, sizeof (ValueT) * count);
} }

View File

@ -298,7 +298,7 @@ namespace cruft {
constexpr auto constexpr auto
operator+ (A &&a, B &&b) operator+ (A &&a, B &&b)
{ {
return arithmetic<std::decay_t<A>, std::decay_t<B>>::template eval (std::plus{}, a, b); return arithmetic<std::decay_t<A>, std::decay_t<B>>::eval (std::plus{}, a, b);
} }
@ -314,7 +314,7 @@ namespace cruft {
constexpr auto constexpr auto
operator- (A &&a, B &&b) operator- (A &&a, B &&b)
{ {
return arithmetic<std::decay_t<A>, std::decay_t<B>>::template eval (std::minus{}, a, b); return arithmetic<std::decay_t<A>, std::decay_t<B>>::eval (std::minus{}, a, b);
} }
@ -333,7 +333,7 @@ namespace cruft {
return arithmetic< return arithmetic<
std::decay_t<A>, std::decay_t<A>,
std::decay_t<B> std::decay_t<B>
>::template eval (std::multiplies{}, a, b); >::eval (std::multiplies{}, a, b);
} }
@ -349,7 +349,7 @@ namespace cruft {
constexpr auto constexpr auto
operator/ (A &&a, B &&b) operator/ (A &&a, B &&b)
{ {
return arithmetic<std::decay_t<A>, std::decay_t<B>>::template eval (std::divides{}, a, b); return arithmetic<std::decay_t<A>, std::decay_t<B>>::eval (std::divides{}, a, b);
} }
@ -897,7 +897,7 @@ namespace cruft {
return arithmetic< return arithmetic<
std::decay_t<A>, std::decay_t<A>,
std::decay_t<B> std::decay_t<B>
>::template eval ( >::eval (
std::modulus{}, std::modulus{},
std::forward<A> (a), std::forward<A> (a),
std::forward<B> (b) std::forward<B> (b)