File indexing completed on 2025-01-18 09:50:14
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_PROCESS_EXE_HPP
0012 #define BOOST_PROCESS_EXE_HPP
0013
0014 #include <boost/process/detail/basic_cmd.hpp>
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 namespace boost {
0030 namespace filesystem { class path; }
0031
0032 namespace process {
0033
0034 namespace detail {
0035
0036 struct exe_
0037 {
0038 template<typename = void>
0039 inline exe_setter_<typename boost::process::filesystem::path::value_type> operator()(const boost::process::filesystem::path & pth) const
0040 {
0041 return exe_setter_<typename boost::process::filesystem::path::value_type>(pth.native());
0042 }
0043
0044 template<typename = void>
0045 inline exe_setter_<typename boost::process::filesystem::path::value_type> operator=(const boost::process::filesystem::path & pth) const
0046 {
0047 return exe_setter_<typename boost::process::filesystem::path::value_type>(pth.native());
0048 }
0049
0050
0051 template<typename Char>
0052 inline exe_setter_<Char> operator()(const Char *s) const
0053 {
0054 return exe_setter_<Char>(s);
0055 }
0056 template<typename Char>
0057 inline exe_setter_<Char> operator= (const Char *s) const
0058 {
0059 return exe_setter_<Char>(s);
0060 }
0061
0062 template<typename Char>
0063 inline exe_setter_<Char> operator()(const std::basic_string<Char> &s) const
0064 {
0065 return exe_setter_<Char>(s);
0066 }
0067 template<typename Char>
0068 inline exe_setter_<Char> operator= (const std::basic_string<Char> &s) const
0069 {
0070 return exe_setter_<Char>(s);
0071 }
0072 };
0073
0074 }
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093 constexpr boost::process::detail::exe_ exe{};
0094
0095 }}
0096
0097 #endif