File indexing completed on 2025-01-18 09:28:47
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_ASIO_DETAIL_WINRT_ASYNC_OP_HPP
0012 #define BOOST_ASIO_DETAIL_WINRT_ASYNC_OP_HPP
0013
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif
0017
0018 #include <boost/asio/detail/config.hpp>
0019 #include <boost/asio/detail/operation.hpp>
0020
0021 #include <boost/asio/detail/push_options.hpp>
0022
0023 namespace boost {
0024 namespace asio {
0025 namespace detail {
0026
0027 template <typename TResult>
0028 class winrt_async_op
0029 : public operation
0030 {
0031 public:
0032
0033 boost::system::error_code ec_;
0034
0035
0036 TResult result_;
0037
0038 protected:
0039 winrt_async_op(func_type complete_func)
0040 : operation(complete_func),
0041 result_()
0042 {
0043 }
0044 };
0045
0046 template <>
0047 class winrt_async_op<void>
0048 : public operation
0049 {
0050 public:
0051
0052 boost::system::error_code ec_;
0053
0054 protected:
0055 winrt_async_op(func_type complete_func)
0056 : operation(complete_func)
0057 {
0058 }
0059 };
0060
0061 }
0062 }
0063 }
0064
0065 #include <boost/asio/detail/pop_options.hpp>
0066
0067 #endif