]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_erasure/test/fail_ref_discard_const_convert_ref.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / type_erasure / test / fail_ref_discard_const_convert_ref.cpp
1 // Boost.TypeErasure library
2 //
3 // Copyright 2011 Steven Watanabe
4 //
5 // Distributed under the Boost Software License Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 //
9 // $Id$
10
11 #include <boost/type_erasure/any.hpp>
12 #include <boost/type_erasure/builtin.hpp>
13 #include <boost/mpl/vector.hpp>
14
15 using namespace boost::type_erasure;
16
17 int main()
18 {
19 int i = 1;
20 any<boost::mpl::vector<copy_constructible<>, typeid_<> >, const _self&> x(i);
21 any<copy_constructible<>, _self&> y(x);
22 }