]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/test_6174.cpp
1 // Copyright (C) 2010 Vicente Botet
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)
7 #define BOOST_THREAD_VERSION 3
9 #include <boost/thread/thread_only.hpp>
10 #include <boost/thread/future.hpp>
11 #include <boost/config.hpp>
13 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
14 struct MovableButNonCopyable
{
15 #if ! defined BOOST_NO_CXX11_DELETED_FUNCTIONS
16 MovableButNonCopyable(MovableButNonCopyable
const&) = delete;
17 MovableButNonCopyable
& operator=(MovableButNonCopyable
const&) = delete;
20 MovableButNonCopyable(MovableButNonCopyable
const&);
21 MovableButNonCopyable
& operator=(MovableButNonCopyable
const&);
24 MovableButNonCopyable() {};
25 MovableButNonCopyable(MovableButNonCopyable
&&) {};
26 MovableButNonCopyable
& operator=(MovableButNonCopyable
&&)
32 MovableButNonCopyable
construct()
34 return MovableButNonCopyable();
39 boost::packaged_task
<MovableButNonCopyable
> pt(construct
);