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