1 // 2 // detail/noncopyable.hpp 3 // ~~~~~~~~~~~~~~~~~~~~~~ 4 // 5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) 6 // 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) 9 // 10 11 #ifndef ASIO_DETAIL_NONCOPYABLE_HPP 12 #define ASIO_DETAIL_NONCOPYABLE_HPP 13 14 15 #include "asio/detail/config.hpp" 16 17 #include "asio/detail/push_options.hpp" 18 19 namespace asio { 20 namespace detail { 21 22 class noncopyable 23 { 24 protected: noncopyable()25 noncopyable() {} ~noncopyable()26 ~noncopyable() {} 27 private: 28 noncopyable(const noncopyable&); 29 const noncopyable& operator=(const noncopyable&); 30 }; 31 32 } // namespace detail 33 34 using asio::detail::noncopyable; 35 36 } // namespace asio 37 38 #include "asio/detail/pop_options.hpp" 39 40 #endif // ASIO_DETAIL_NONCOPYABLE_HPP 41