]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/core/test/ref_rv_fail1.cpp
1c0a2e688ab195919f52e710981cfd784cd17146
2 // Test that a reference_wrapper can't be constructed from an rvalue
4 // Copyright 2014 Agustin Berge
6 // Distributed under the Boost Software License, Version 1.0.
7 // See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt
11 #include <boost/ref.hpp>
13 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
17 boost::reference_wrapper
<int const> r( 1 ); // this should produce an ERROR
22 # error To fail, this test requires rvalue references