boost_any 0.1.0

Boost C++ library boost_any packaged using Zanbil
Documentation
// Copyright Antony Polukhin, 2017-2025.
// Copyright Ruslan Arutyunyan, 2019-2021.
//
// 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)

// This tests the issue from https://svn.boost.org/trac/boost/ticket/12052

#include <iostream>
#include <boost/any/basic_any.hpp>

int main() {
    boost::anys::basic_any<> a = 1;
    std::cout << boost::any_cast<int>(a) << '\n';
    a = 3.14;
    std::cout << boost::any_cast<double>(a) << '\n';
    a = true;
    std::cout << std::boolalpha << boost::any_cast<bool>(a) << '\n';
}