fix doc example typo
[boost.git] / boost / asio / deadline_timer.hpp
bloba62a2ce1c120ca54f003f15ffd0cf323b283b27d
1 //
2 // deadline_timer.hpp
3 // ~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2008 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 //
11 #ifndef BOOST_ASIO_DEADLINE_TIMER_HPP
12 #define BOOST_ASIO_DEADLINE_TIMER_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18 #include <boost/asio/detail/push_options.hpp>
20 #include <boost/asio/detail/socket_types.hpp> // Must come before posix_time.
22 #include <boost/asio/detail/push_options.hpp>
23 #include <boost/date_time/posix_time/posix_time_types.hpp>
24 #include <boost/asio/detail/pop_options.hpp>
26 #include <boost/asio/basic_deadline_timer.hpp>
28 namespace boost {
29 namespace asio {
31 /// Typedef for the typical usage of timer.
32 typedef basic_deadline_timer<boost::posix_time::ptime> deadline_timer;
34 } // namespace asio
35 } // namespace boost
37 #include <boost/asio/detail/pop_options.hpp>
39 #endif // BOOST_ASIO_DEADLINE_TIMER_HPP