Warning, file /include/boost/process/v1/detail/throw_on_error.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_PROCESS_DETAIL_INITIALIZERS_THROW_ON_ERROR_HPP
0012 #define BOOST_PROCESS_DETAIL_INITIALIZERS_THROW_ON_ERROR_HPP
0013
0014 #include <boost/process/v1/detail/config.hpp>
0015 #include <boost/process/v1/detail/handler_base.hpp>
0016
0017 namespace boost { namespace process { BOOST_PROCESS_V1_INLINE namespace v1 { namespace detail {
0018
0019 struct throw_on_error_ : ::boost::process::v1::detail::handler
0020 {
0021 template <class Executor>
0022 void on_error(Executor& exec, const std::error_code & ec) const
0023 {
0024 throw process_error(ec, "process creation failed");
0025 }
0026
0027 const throw_on_error_ &operator()() const {return *this;}
0028 };
0029
0030 }
0031
0032 constexpr boost::process::v1::detail::throw_on_error_ throw_on_error;
0033
0034 }}}
0035
0036 #endif