$search
00001 // 00002 // service_id.hpp 00003 // ~~~~~~~~~~~~~~ 00004 // 00005 // Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com) 00006 // 00007 // Distributed under the Boost Software License, Version 1.0. (See accompanying 00008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 00009 // 00010 00011 #ifndef ASIO_DETAIL_SERVICE_ID_HPP 00012 #define ASIO_DETAIL_SERVICE_ID_HPP 00013 00014 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 00015 # pragma once 00016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 00017 00018 #include "asio/detail/push_options.hpp" 00019 00020 #include "asio/io_service.hpp" 00021 00022 namespace asio { 00023 namespace detail { 00024 00025 // Special derived service id type to keep classes header-file only. 00026 template <typename Type> 00027 class service_id 00028 : public asio::io_service::id 00029 { 00030 }; 00031 00032 } // namespace detail 00033 } // namespace asio 00034 00035 #include "asio/detail/pop_options.hpp" 00036 00037 #endif // ASIO_DETAIL_SERVICE_ID_HPP