12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #ifndef ASIO_MULTIPLE_EXCEPTIONS_HPP
- #define ASIO_MULTIPLE_EXCEPTIONS_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include "asio/detail/config.hpp"
- #include <exception>
- #include "asio/detail/push_options.hpp"
- namespace asio {
- class multiple_exceptions
- : public std::exception
- {
- public:
-
- ASIO_DECL multiple_exceptions(
- std::exception_ptr first) noexcept;
-
- ASIO_DECL virtual const char* what() const
- noexcept;
-
- ASIO_DECL std::exception_ptr first_exception() const;
- private:
- std::exception_ptr first_;
- };
- }
- #include "asio/detail/pop_options.hpp"
- #if defined(ASIO_HEADER_ONLY)
- # include "asio/impl/multiple_exceptions.ipp"
- #endif
- #endif
|