]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/qvm/test/access_m_fail1.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / qvm / test / access_m_fail1.cpp
CommitLineData
92f5a8d4
TL
1//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
2
3//Distributed under the Boost Software License, Version 1.0. (See accompanying
4//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6#include <boost/qvm/mat_access.hpp>
7
8template <int R,int C> struct my_mat { };
9
10namespace
11boost
12 {
13 namespace
14 qvm
15 {
16 template <int R,int C>
17 struct
18 mat_traits< my_mat<R,C> >
19 {
20 typedef int scalar_type;
21 static int const rows=R;
22 static int const cols=C;
23 template <int Row,int Col> static int read_element( my_mat<R,C> const & );
24 template <int Row,int Col> static int & write_element( my_mat<R,C> & );
25 };
26 }
27 }
28
29int
30main()
31 {
32 using namespace boost::qvm;
33 my_mat<1,1> const m=my_mat<1,1>();
34 A11(m);
35 return 1;
36 }