From 879a76abab13236d2111be0a007194dec0246775 Mon Sep 17 00:00:00 2001 From: Dominik Charousset Date: Tue, 8 Sep 2020 20:40:13 +0200 Subject: [PATCH] Fix build on MSVC --- libcaf_core/test/message.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcaf_core/test/message.cpp b/libcaf_core/test/message.cpp index 2de6395713..49d164d91a 100644 --- a/libcaf_core/test/message.cpp +++ b/libcaf_core/test/message.cpp @@ -100,8 +100,8 @@ CAF_TEST(to_string converts messages to strings) { svec{"five", "six", "seven"}), R"__(message(std::vector(["one", "two"]), "three", "four", )__" R"__(std::vector(["five", "six", "seven"])))__"); - CAF_CHECK_EQUAL(msg_as_string(R"(this is a "test")"), - R"__(message("this is a \"test\""))__"); + auto teststr = R"__(message("this is a \"test\""))__"; // fails inline on MSVC + CAF_CHECK_EQUAL(msg_as_string(R"__(this is a "test")__"), teststr); CAF_CHECK_EQUAL(msg_as_string(make_tuple(1, 2, 3), 4, 5), "message(std::tuple([1, 2, 3]), " "int32_t(4), int32_t(5))");