//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. //Distributed under the Boost Software License, Version 1.0. (See accompanying //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include template struct my_mat { }; namespace boost { namespace qvm { template struct mat_traits< my_mat > { typedef int scalar_type; static int const rows=R; static int const cols=C; template static int read_element( my_mat const & ); template static int & write_element( my_mat & ); }; } } int main() { using namespace boost::qvm; my_mat<1,1> const m=my_mat<1,1>(); A11(m); return 1; }