From f38919eeccf4d484bba756af17c45bc84c4fb2e6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 15 Dec 2020 23:47:47 -0800 Subject: Avoid using a hidden unnamed template parameter --- common/vecmat.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/vecmat.h') diff --git a/common/vecmat.h b/common/vecmat.h index 5a61ad14..d301cc30 100644 --- a/common/vecmat.h +++ b/common/vecmat.h @@ -11,8 +11,9 @@ namespace alu { -template::value, bool> = true> +template class VectorR { + static_assert(std::is_floating_point::value, "Must use floating-point types"); alignas(16) std::array mVals; public: @@ -63,8 +64,9 @@ public: }; using Vector = VectorR; -template::value, bool> = true> +template class MatrixR { + static_assert(std::is_floating_point::value, "Must use floating-point types"); alignas(16) std::array mVals; public: -- cgit v1.2.3