]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/any/test/any_test_mplif.cpp
1 // Copyright Antony Polukhin, 2017-2022.
3 // Distributed under the Boost Software License, Version 1.0. (See
4 // accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 // This tests the issue from https://svn.boost.org/trac/boost/ticket/12052
10 #include <boost/any.hpp>
14 std::cout
<< boost::any_cast
<int>(a
) << '\n';
16 std::cout
<< boost::any_cast
<double>(a
) << '\n';
18 std::cout
<< std::boolalpha
<< boost::any_cast
<bool>(a
) << '\n';