mirror of
https://github.com/boostorg/any.git
synced 2026-01-23 05:12:09 +00:00
15 lines
362 B
C++
15 lines
362 B
C++
// Copyright Antony Polukhin, 2013-2026.
|
|
//
|
|
// 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 <boost/any/unique_any.hpp>
|
|
|
|
int main() {
|
|
boost::anys::unique_any const cvalue(10);
|
|
int i = boost::any_cast<int&&>(cvalue);
|
|
(void)i;
|
|
}
|
|
|