2 // detail/noncopyable.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~
5 // Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com)
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef BOOST_ASIO_DETAIL_NONCOPYABLE_HPP
12 #define BOOST_ASIO_DETAIL_NONCOPYABLE_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18 #include <boost/asio/detail/config.hpp>
19 #include <boost/noncopyable.hpp>
20 #include <boost/detail/workaround.hpp>
22 #include <boost/asio/detail/push_options.hpp>
28 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
29 // Redefine the noncopyable class for Borland C++ since that compiler does not
30 // apply the empty base optimisation unless the base class contains a dummy
38 noncopyable(const noncopyable&);
39 const noncopyable& operator=(const noncopyable&);
43 using boost::noncopyable;
48 using boost::asio::detail::noncopyable;
53 #include <boost/asio/detail/pop_options.hpp>
55 #endif // BOOST_ASIO_DETAIL_NONCOPYABLE_HPP