]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/core/test/ref_rv_fail2.cpp
7258411e6ac4bc3f75db42d58b59c5ab674d2168
[ceph.git] / ceph / src / boost / libs / core / test / ref_rv_fail2.cpp
1 //
2 // Test that an rvalue can't be passed to ref()
3 //
4 // Copyright 2014 Agustin Berge
5 //
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
9 //
10
11 #include <boost/ref.hpp>
12
13 int main()
14 {
15 boost::reference_wrapper<int> r = boost::ref( 2 ); // this should produce an ERROR
16 }