Files
any/test/basic_any_test_cv_to_rv_failed.cpp
T
2023-09-04 09:37:22 +03:00

28 lines
624 B
C++

// Unit test for boost::any.
//
// See http://www.boost.org for most recent version, including documentation.
//
// Copyright Antony Polukhin, 2013-2023.
// 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).
#include <cstdlib>
#include <string>
#include <utility>
#include <boost/any/basic_any.hpp>
#include "test.hpp"
int main()
{
boost::anys::basic_any<> const cvalue(10);
int i = boost::any_cast<int&&>(cvalue);
(void)i;
return EXIT_SUCCESS;
}