# QVM: Quaternions, Vectors, Matrices

### boost/qvm/quat_traits_defaults.hpp

#include <boost/qvm/quat_traits_defaults.hpp>

    namespace boost
    {
        namespace qvm
        {
            template <class QuatType,class ScalarType>
            struct quat_traits_defaults
            {
                typedef QuatType quat_type;
                typedef ScalarType scalar_type;

                template <int I>
                static BOOST_QVM_INLINE_CRITICAL
                scalar_type read_element( quat_type const & x )
                {
                    return quat_traits<quat_type>::template write_element<I>(const_cast<quat_type &>(x));
                }
            };
        }
    }

See also: quat_traits_defaults