aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests/shared/command.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-27 01:55:22 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-27 02:27:56 +0300
commit3a36e6c51974594d994562c712e068835aae85f1 (patch)
tree460a6e11ed579f42d03de0234786552ccffe2da4 /test/unit_tests/shared/command.hpp
parentclang-format (diff)
downloadwinapi-common-3a36e6c51974594d994562c712e068835aae85f1.tar.gz
winapi-common-3a36e6c51974594d994562c712e068835aae85f1.zip
VS 2013 workarounds
Diffstat (limited to 'test/unit_tests/shared/command.hpp')
-rw-r--r--test/unit_tests/shared/command.hpp8
1 files changed, 4 insertions, 4 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;