2
0
mirror of https://github.com/boostorg/any.git synced 2026-01-20 16:32:07 +00:00
Files
any/test/unique_any/const_rvalue_construction_failed.cpp
2026-01-02 13:35:47 +03:00

18 lines
421 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>
const boost::anys::unique_any&& get() {
static const boost::anys::unique_any a;
return std::move(a);
}
int main() {
boost::anys::unique_any b(get());
(void)b;
}