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