From e0acc9288e7ba7ad8db179167ad57c38e4475394 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 21 Aug 2020 09:33:46 +1000 Subject: [PATCH] quaternion: explicitly instantiate the sanity check --- quaternion.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/quaternion.cpp b/quaternion.cpp index df03f42c..967a512d 100644 --- a/quaternion.cpp +++ b/quaternion.cpp @@ -356,17 +356,19 @@ cruft::operator<< (std::ostream &os, const quaternion q) /////////////////////////////////////////////////////////////////////////////// -namespace cruft::debug { - template - struct validator> { - static constexpr - bool - is_valid (const quaternion &q) - { - return is_normalised (q); - } - }; -} +template +struct cruft::debug::validator> { + static constexpr + bool + is_valid (const quaternion &q) + { + return is_normalised (q); + } +}; + + +//----------------------------------------------------------------------------- +template struct cruft::debug::validator<::cruft::quaternion>; ///////////////////////////////////////////////////////////////////////////////