From e43535c2a7cd7f735b74dc3dc3c90a192e5ce492 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 6 Aug 2024 14:43:22 +1000 Subject: [PATCH] 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. --- cruft/util/alloc/allocator.hpp | 4 ++-- cruft/util/coord/ops.hpp | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cruft/util/alloc/allocator.hpp b/cruft/util/alloc/allocator.hpp index 0867368a..d84bf2cc 100644 --- a/cruft/util/alloc/allocator.hpp +++ b/cruft/util/alloc/allocator.hpp @@ -33,7 +33,7 @@ namespace cruft::alloc { { return { reinterpret_cast ( - m_backing.template allocate ( + m_backing.allocate ( sizeof (ValueT) * count, alignof (ValueT) ) @@ -46,7 +46,7 @@ namespace cruft::alloc { void deallocate (ValueT *t, size_t count) { - return m_backing.template deallocate (t, sizeof (ValueT) * count); + return m_backing.deallocate (t, sizeof (ValueT) * count); } diff --git a/cruft/util/coord/ops.hpp b/cruft/util/coord/ops.hpp index 1cd02225..fe56382d 100644 --- a/cruft/util/coord/ops.hpp +++ b/cruft/util/coord/ops.hpp @@ -298,7 +298,7 @@ namespace cruft { constexpr auto operator+ (A &&a, B &&b) { - return arithmetic, std::decay_t>::template eval (std::plus{}, a, b); + return arithmetic, std::decay_t>::eval (std::plus{}, a, b); } @@ -314,7 +314,7 @@ namespace cruft { constexpr auto operator- (A &&a, B &&b) { - return arithmetic, std::decay_t>::template eval (std::minus{}, a, b); + return arithmetic, std::decay_t>::eval (std::minus{}, a, b); } @@ -333,7 +333,7 @@ namespace cruft { return arithmetic< std::decay_t, std::decay_t - >::template eval (std::multiplies{}, a, b); + >::eval (std::multiplies{}, a, b); } @@ -349,7 +349,7 @@ namespace cruft { constexpr auto operator/ (A &&a, B &&b) { - return arithmetic, std::decay_t>::template eval (std::divides{}, a, b); + return arithmetic, std::decay_t>::eval (std::divides{}, a, b); } @@ -897,7 +897,7 @@ namespace cruft { return arithmetic< std::decay_t, std::decay_t - >::template eval ( + >::eval ( std::modulus{}, std::forward (a), std::forward (b)