diff options
Diffstat (limited to 'modules/codec/c++/schema_math.hpp')
-rw-r--r-- | modules/codec/c++/schema_math.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/codec/c++/schema_math.hpp b/modules/codec/c++/schema_math.hpp index 471409f..203b88a 100644 --- a/modules/codec/c++/schema_math.hpp +++ b/modules/codec/c++/schema_math.hpp @@ -8,9 +8,13 @@ template<typename T> struct Complex {}; template<typename T> -struct Quaternion {}; +struct Quaternion { + static_assert(is_primitive<T>::value, "Quaternions assume a primitive type"); +}; template<typename T, uint64_t D> -struct Euler {}; +struct Euler { + static_assert(is_primitive<T>::value, "Quaternions assume a primitive type"); +}; } } |