]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_erasure/test/fail_any_cast_discard_const6.cpp
1 // Boost.TypeErasure library
3 // Copyright 2011 Steven Watanabe
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)
11 #include <boost/type_erasure/any.hpp>
12 #include <boost/type_erasure/builtin.hpp>
13 #include <boost/type_erasure/any_cast.hpp>
14 #include <boost/mpl/vector.hpp>
16 using namespace boost::type_erasure
;
21 const any
< ::boost::mpl::vector
<copy_constructible
<>, typeid_
<> >, const _self
&> y(i
);
22 int j
= *any_cast
<int*>(&y
);