From e7ec6d7281e1846dc2285366bd8764fe2c9009df Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Wed, 22 May 2019 01:33:47 +0700 Subject: [PATCH 1/3] Include if MSVC 2019 or later --- test/doctest/doctest.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/doctest/doctest.h b/test/doctest/doctest.h index e70d3f10..877d9a91 100644 --- a/test/doctest/doctest.h +++ b/test/doctest/doctest.h @@ -420,7 +420,11 @@ extern "C" __declspec(dllimport) void __stdcall DebugBreak(); // so the header is used - also it is very light and doesn't drag a ton of stuff //#include #include -#else // _LIBCPP_VERSION +#elif (_MSC_VER >= 1920) +// MSVC 2019 removes from +// https://developercommunity.visualstudio.com/content/problem/525532/visual-studio-2019-compilation-issue.html +#include +#else #ifndef DOCTEST_CONFIG_USE_IOSFWD namespace std { From fb274c37b7745f72f3f001e753c7913dc902d6ab Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Wed, 22 May 2019 01:39:32 +0700 Subject: [PATCH 2/3] MSVC 2019 needs included for to_string --- test/file_tests.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/file_tests.cpp b/test/file_tests.cpp index 89742b8f..b1706946 100644 --- a/test/file_tests.cpp +++ b/test/file_tests.cpp @@ -20,6 +20,7 @@ #include "io_service_fixture.hpp" #include +#include #include "doctest/doctest.h" TEST_SUITE_BEGIN("file"); From d2245e8fac1c181d21393002c0f3b35c035e449f Mon Sep 17 00:00:00 2001 From: denchat <19730041+denchat@users.noreply.github.com> Date: Sun, 1 Sep 2019 01:49:30 +0700 Subject: [PATCH 3/3] trying force push --- test/doctest/doctest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/doctest/doctest.h b/test/doctest/doctest.h index 877d9a91..0ff83dd0 100644 --- a/test/doctest/doctest.h +++ b/test/doctest/doctest.h @@ -421,7 +421,7 @@ extern "C" __declspec(dllimport) void __stdcall DebugBreak(); //#include #include #elif (_MSC_VER >= 1920) -// MSVC 2019 removes from +// MSVC 2019 removes from // https://developercommunity.visualstudio.com/content/problem/525532/visual-studio-2019-compilation-issue.html #include #else