diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-16 18:38:30 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-16 18:44:21 +0300 |
commit | 1e5e37a9d1af571e962671db95b23c7cc7ddce6d (patch) | |
tree | e4b9900e7f4c1973fa4670f5d43a140bc551098a /include/winapi/process_io.hpp | |
parent | update cmake-common (diff) | |
download | winapi-common-1e5e37a9d1af571e962671db95b23c7cc7ddce6d.tar.gz winapi-common-1e5e37a9d1af571e962671db95b23c7cc7ddce6d.zip |
remove VS 2013 cruft
Diffstat (limited to '')
-rw-r--r-- | include/winapi/process_io.hpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/include/winapi/process_io.hpp b/include/winapi/process_io.hpp index 976ad6e..805ada8 100644 --- a/include/winapi/process_io.hpp +++ b/include/winapi/process_io.hpp @@ -9,8 +9,6 @@ #include "path.hpp" #include "pipe.hpp" -#include <boost/config.hpp> - #include <string> #include <utility> @@ -20,29 +18,14 @@ namespace process { struct Stream { Stream(Handle&& handle) : handle{std::move(handle)} {} - // VS 2013 won't generate these automatically. - Stream(Stream&& other) BOOST_NOEXCEPT_OR_NOTHROW; - Stream& operator=(Stream other) BOOST_NOEXCEPT_OR_NOTHROW; - void swap(Stream& other) BOOST_NOEXCEPT_OR_NOTHROW; - Stream(const Stream&) = delete; - Handle handle; }; -inline void swap(Stream& a, Stream& b) BOOST_NOEXCEPT_OR_NOTHROW { - a.swap(b); -} - struct Stdin : Stream { Stdin(); explicit Stdin(const std::string& file); explicit Stdin(const CanonicalPath& file); explicit Stdin(Pipe&); - - // VS 2013 won't generate these automatically. - Stdin(Stdin&& other) BOOST_NOEXCEPT_OR_NOTHROW; - Stdin& operator=(Stdin other) BOOST_NOEXCEPT_OR_NOTHROW; - Stdin(const Stdin&) = delete; }; struct Stdout : Stream { @@ -50,11 +33,6 @@ struct Stdout : Stream { explicit Stdout(const std::string& file); explicit Stdout(const CanonicalPath& file); explicit Stdout(Pipe&); - - // VS 2013 won't generate these automatically. - Stdout(Stdout&& other) BOOST_NOEXCEPT_OR_NOTHROW; - Stdout& operator=(Stdout other) BOOST_NOEXCEPT_OR_NOTHROW; - Stdout(const Stdout&) = delete; }; struct Stderr : Stream { @@ -62,22 +40,11 @@ struct Stderr : Stream { explicit Stderr(const std::string& file); explicit Stderr(const CanonicalPath& file); explicit Stderr(Pipe&); - - // VS 2013 won't generate these automatically. - Stderr(Stderr&& other) BOOST_NOEXCEPT_OR_NOTHROW; - Stderr& operator=(Stderr other) BOOST_NOEXCEPT_OR_NOTHROW; - Stderr(const Stderr&) = delete; }; struct IO { IO() = default; - // VS 2013 won't generate these automatically. - IO(IO&& other) BOOST_NOEXCEPT_OR_NOTHROW; - IO& operator=(IO other) BOOST_NOEXCEPT_OR_NOTHROW; - void swap(IO& other) BOOST_NOEXCEPT_OR_NOTHROW; - IO(const IO&) = delete; - void close(); Stdin std_in; @@ -85,23 +52,5 @@ struct IO { Stderr std_err; }; -inline void swap(IO& a, IO& b) BOOST_NOEXCEPT_OR_NOTHROW { - a.swap(b); -} - } // namespace process } // namespace winapi - -namespace std { - -template <> -inline void swap(winapi::process::Stream& a, winapi::process::Stream& b) BOOST_NOEXCEPT_OR_NOTHROW { - a.swap(b); -} - -template <> -inline void swap(winapi::process::IO& a, winapi::process::IO& b) BOOST_NOEXCEPT_OR_NOTHROW { - a.swap(b); -} - -} // namespace std |