diff --git a/coord/init.hpp b/coord/init.hpp index 04aa12a6..f442c3af 100644 --- a/coord/init.hpp +++ b/coord/init.hpp @@ -71,6 +71,18 @@ namespace util::coord { store<4,T,SelfT> ({ v0, v1, v2, v3 }) { ; } }; + + + //------------------------------------------------------------------------- + template + struct init<5,T,SelfT> : public store<5,T,SelfT> + { + using store<5,T,SelfT>::store; + constexpr init () = default; + constexpr init (T v0, T v1, T v2, T v3, T v4): + store<5,T,SelfT> ({ v0, v1, v2, v3, v4 }) + { ; } + }; } #endif diff --git a/coord/store.hpp b/coord/store.hpp index f877d1fa..ec64fe2a 100644 --- a/coord/store.hpp +++ b/coord/store.hpp @@ -108,6 +108,14 @@ DEFINE_STORE(vector, x, y, z, w) #undef DEFINE_STORE +namespace util::coord { + template + struct store { + T data[S]; + }; +} + + #if 0 template struct util::coord::store<1,T,::util::extent<1,T>> {