From 3a36e6c51974594d994562c712e068835aae85f1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 27 Oct 2020 01:55:22 +0300 Subject: VS 2013 workarounds --- test/unit_tests/shared/command.hpp | 8 ++++---- test/unit_tests/shared/console.hpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'test') 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 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; } -- cgit v1.2.3