]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/sync/mutual_exclusion/synchronized_value/copy_ctor_pass.cpp
1 // Copyright (C) 2013 Vicente J. Botet Escriba
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 // <boost/thread/synchronized_value.hpp>
8 // class synchronized_value<T,M>
10 // synchronized_value(synchronized_value const&);
12 #define BOOST_THREAD_VERSION 4
14 #include <boost/thread/synchronized_value.hpp>
16 #include <boost/detail/lightweight_test.hpp>
23 boost::synchronized_value
<int> v1(i
);
24 boost::synchronized_value
<int> v2(v1
);
25 BOOST_TEST(v2
.value() == 1);
28 return boost::report_errors();