diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-27 01:55:22 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-27 02:27:56 +0300 |
commit | 3a36e6c51974594d994562c712e068835aae85f1 (patch) | |
tree | 460a6e11ed579f42d03de0234786552ccffe2da4 /test | |
parent | clang-format (diff) | |
download | winapi-common-3a36e6c51974594d994562c712e068835aae85f1.tar.gz winapi-common-3a36e6c51974594d994562c712e068835aae85f1.zip |
VS 2013 workarounds
Diffstat (limited to 'test')
-rw-r--r-- | test/unit_tests/shared/command.hpp | 8 | ||||
-rw-r--r-- | test/unit_tests/shared/console.hpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/unit_tests/shared/command.hpp b/test/unit_tests/shared/command.hpp index 69c230f..266903f 100644 --- a/test/unit_tests/shared/command.hpp +++ b/test/unit_tests/shared/command.hpp @@ -29,14 +29,14 @@ struct StdHandles { HANDLE err; }; +BOOST_STATIC_CONSTEXPR auto COMMAND_SHMEM_NAME = "shmem-test-cmd"; + class Command { public: - BOOST_STATIC_CONSTEXPR auto SHMEM_NAME = "shmem-test-cmd"; - typedef winapi::SharedObject<Command> Shared; - static Shared create() { return Shared::create(SHMEM_NAME); } - static Shared open() { return Shared::open(SHMEM_NAME); } + static Shared create() { return Shared::create(COMMAND_SHMEM_NAME); } + static Shared open() { return Shared::open(COMMAND_SHMEM_NAME); } typedef boost::interprocess::interprocess_mutex mutex; typedef boost::interprocess::interprocess_condition condition_variable; diff --git a/test/unit_tests/shared/console.hpp b/test/unit_tests/shared/console.hpp index 0a415e5..faa887c 100644 --- a/test/unit_tests/shared/console.hpp +++ b/test/unit_tests/shared/console.hpp @@ -26,9 +26,9 @@ class Buffer { public: typedef CONSOLE_SCREEN_BUFFER_INFO Info; - Buffer() : m_handle{winapi::Handle::std_out()}, m_info{get_info(m_handle)} {} + Buffer() : m_handle{winapi::Handle::std_out()}, m_info(get_info(m_handle)) {} - Buffer(winapi::Handle&& handle) : m_handle{std::move(handle)}, m_info{get_info(m_handle)} {} + Buffer(winapi::Handle&& handle) : m_handle{std::move(handle)}, m_info(get_info(m_handle)) {} std::size_t get_columns() const { return m_info.dwSize.X; } |