12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef BOOST_THREAD_DETAIL_DELETE_HPP
- #define BOOST_THREAD_DETAIL_DELETE_HPP
- #include <boost/config.hpp>
- #if ! defined BOOST_NO_CXX11_DELETED_FUNCTIONS && ! defined BOOST_NO_CXX11_RVALUE_REFERENCES
- #define BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
- CLASS(CLASS const&) = delete; \
- #define BOOST_THREAD_DELETE_COPY_ASSIGN(CLASS) \
- CLASS& operator=(CLASS const&) = delete;
- #else // BOOST_NO_CXX11_DELETED_FUNCTIONS
- #if defined(BOOST_MSVC) && _MSC_VER >= 1600
- #define BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
- private: \
- CLASS(CLASS const&); \
- public:
- #define BOOST_THREAD_DELETE_COPY_ASSIGN(CLASS) \
- private: \
- CLASS& operator=(CLASS const&); \
- public:
- #else
- #define BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
- private: \
- CLASS(CLASS&); \
- public:
- #define BOOST_THREAD_DELETE_COPY_ASSIGN(CLASS) \
- private: \
- CLASS& operator=(CLASS&); \
- public:
- #endif
- #endif // BOOST_NO_CXX11_DELETED_FUNCTIONS
- #define BOOST_THREAD_NO_COPYABLE(CLASS) \
- BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
- BOOST_THREAD_DELETE_COPY_ASSIGN(CLASS)
- #endif // BOOST_THREAD_DETAIL_DELETE_HPP
|