Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change doctest to always include <ostream> #175

Closed

Conversation

andreasbuhr
Copy link
Contributor

On MSVC 1928, doctest.h fails to compile if was not
included before. In the code was a statement that a similar problem
existed with clang before.
This patch changes doctest.h to always include .

On MSVC 1928, doctest.h fails to compile if <ostream> was not
included before. In the code was a statement that a similar problem
existed with clang before.
This patch changes doctest.h to always include <ostream>.
Copy link
Owner

@lewissbaker lewissbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the 'vs2019' branch I ended up just upgrading doctest to a later version which I think fixes a bunch of issues with MSVC 2019 builds.

Would upgrading doctest to a later version be a better approach than trying to patch this old version?

Comment on lines -435 to -437
#else // DOCTEST_CONFIG_USE_IOSFWD
#include <iosfwd>
#endif // DOCTEST_CONFIG_USE_IOSFWD
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you still be preserving the semantics of the DOCTEST_CONFIG_USE_IOSFWD macro?

@andreasbuhr
Copy link
Contributor Author

I agree. Updating doctest is better than patching the old one. I created a pull request for this in #178 but that still needs more testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants