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
19namespace asio {
20namespace detail {
21
22class noncopyable
23{
24protected:
25  noncopyable() {}
26  ~noncopyable() {}
27private:
28  noncopyable(const noncopyable&);
29  const noncopyable& operator=(const noncopyable&);
30};
31
32} // namespace detail
33
34using asio::detail::noncopyable;
35
36} // namespace asio
37
38#include "asio/detail/pop_options.hpp"
39
40#endif // ASIO_DETAIL_NONCOPYABLE_HPP
41