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 /src/pipe.cpp | |
| parent | update cmake-common (diff) | |
| download | winapi-common-1e5e37a9d1af571e962671db95b23c7cc7ddce6d.tar.gz winapi-common-1e5e37a9d1af571e962671db95b23c7cc7ddce6d.zip | |
remove VS 2013 cruft
Diffstat (limited to 'src/pipe.cpp')
| -rw-r--r-- | src/pipe.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/pipe.cpp b/src/pipe.cpp index 299ab0f..d649657 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -7,8 +7,6 @@ #include <winapi/handle.hpp> #include <winapi/pipe.hpp> -#include <boost/config.hpp> - #include <windows.h> #include <cstring> @@ -26,7 +24,7 @@ void create_pipe(Handle& read_end, Handle& write_end) { attributes.nLength = sizeof(attributes); attributes.bInheritHandle = TRUE; - BOOST_STATIC_CONSTEXPR DWORD buffer_size = 16 * 1024; + static constexpr DWORD buffer_size = 16 * 1024; const auto ret = ::CreatePipe(&read_end_impl, &write_end_impl, &attributes, buffer_size); @@ -44,19 +42,4 @@ Pipe::Pipe() { create_pipe(m_read_end, m_write_end); } -Pipe::Pipe(Pipe&& other) BOOST_NOEXCEPT_OR_NOTHROW { - swap(other); -} - -Pipe& Pipe::operator=(Pipe other) BOOST_NOEXCEPT_OR_NOTHROW { - swap(other); - return *this; -} - -void Pipe::swap(Pipe& other) BOOST_NOEXCEPT_OR_NOTHROW { - using std::swap; - swap(m_read_end, other.m_read_end); - swap(m_write_end, other.m_write_end); -} - } // namespace winapi |
