12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #ifndef BOOST_PROCESS_EXE_HPP
- #define BOOST_PROCESS_EXE_HPP
- #include <boost/process/detail/basic_cmd.hpp>
- namespace boost {
- namespace filesystem { class path; }
- namespace process {
- namespace detail {
- struct exe_
- {
- template<typename = void>
- inline exe_setter_<typename boost::filesystem::path::value_type> operator()(const boost::filesystem::path & pth) const
- {
- return exe_setter_<typename boost::filesystem::path::value_type>(pth.native());
- }
- template<typename = void>
- inline exe_setter_<typename boost::filesystem::path::value_type> operator=(const boost::filesystem::path & pth) const
- {
- return exe_setter_<typename boost::filesystem::path::value_type>(pth.native());
- }
- template<typename Char>
- inline exe_setter_<Char> operator()(const Char *s) const
- {
- return exe_setter_<Char>(s);
- }
- template<typename Char>
- inline exe_setter_<Char> operator= (const Char *s) const
- {
- return exe_setter_<Char>(s);
- }
- template<typename Char>
- inline exe_setter_<Char> operator()(const std::basic_string<Char> &s) const
- {
- return exe_setter_<Char>(s);
- }
- template<typename Char>
- inline exe_setter_<Char> operator= (const std::basic_string<Char> &s) const
- {
- return exe_setter_<Char>(s);
- }
- };
- }
- constexpr boost::process::detail::exe_ exe{};
- }}
- #endif
|