123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #ifndef BOOST_PROCESS_SHELL_PATH_HPP
- #define BOOST_PROCESS_SHELL_PATH_HPP
- #include <boost/process/v1/detail/config.hpp>
- #include <boost/process/v1/detail/traits/wchar_t.hpp>
- #if defined(BOOST_POSIX_API)
- #include <boost/process/v1/detail/posix/shell_path.hpp>
- #elif defined(BOOST_WINDOWS_API)
- #include <boost/process/v1/detail/windows/shell_path.hpp>
- #endif
- namespace boost { namespace process { BOOST_PROCESS_V1_INLINE namespace v1 { namespace detail {
- struct shell_
- {
- constexpr shell_() {}
- boost::process::v1::filesystem::path operator()() const
- {
- return boost::process::v1::detail::api::shell_path();
- }
- boost::process::v1::filesystem::path operator()(std::error_code & ec) const noexcept
- {
- return boost::process::v1::detail::api::shell_path(ec);
- }
- };
- template<>
- struct is_wchar_t<shell_> : is_wchar_t<boost::process::v1::filesystem::path>
- {
- };
- }
- constexpr ::boost::process::v1::detail::shell_ shell;
- }}}
- #endif
|