Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/doctest/doctest.h
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,11 @@ extern "C" __declspec(dllimport) void __stdcall DebugBreak();
// so the <iosfwd> header is used - also it is very light and doesn't drag a ton of stuff
//#include <iosfwd>
#include <ostream>
#else // _LIBCPP_VERSION
#elif (_MSC_VER >= 1920)
// MSVC 2019 removes <iostream> from <string>
// https://developercommunity.visualstudio.com/content/problem/525532/visual-studio-2019-compilation-issue.html
#include <ostream>
#else
#ifndef DOCTEST_CONFIG_USE_IOSFWD
namespace std
{
Expand Down
1 change: 1 addition & 0 deletions test/file_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "io_service_fixture.hpp"

#include <ostream>
#include <string>
#include "doctest/doctest.h"

TEST_SUITE_BEGIN("file");
Expand Down