Replace <iosfwd> with <ostream> in doctest.h to try and fix linker errors under Linux (#78)

This commit is contained in:
Lewis Baker 2018-04-06 15:25:51 +09:30 committed by GitHub
parent 14ad4bd5dd
commit bce2a72817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -418,7 +418,8 @@ extern "C" __declspec(dllimport) void __stdcall DebugBreak();
#ifdef _LIBCPP_VERSION
// not forward declaring ostream for libc++ because I had some problems (inline namespaces vs c++98)
// so the <iosfwd> header is used - also it is very light and doesn't drag a ton of stuff
#include <iosfwd>
//#include <iosfwd>
#include <ostream>
#else // _LIBCPP_VERSION
#ifndef DOCTEST_CONFIG_USE_IOSFWD
namespace std