32 #ifndef __VMML_VECTOR_TRAITS_HPP__
33 #define __VMML_VECTOR_TRAITS_HPP__
35 #include <vmmlib/vector.hpp>
36 #include <boost/la/vector_traits.hpp>
43 template<
size_t M,
typename T>
44 struct vector_traits<vmml::vector<M, T> >
48 static const int dim = M;
50 typedef T scalar_type;
55 BOOST_STATIC_ASSERT(I >= 0);
56 BOOST_STATIC_ASSERT(I < dim);
63 BOOST_STATIC_ASSERT(I >= 0);
64 BOOST_STATIC_ASSERT(I < dim);
71 BOOST_ASSERT(i < dim);
78 BOOST_ASSERT(i < dim);