Skip to content

Add opt-in c++11 stream insertable check. #877

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

Merged
merged 2 commits into from
Apr 5, 2017

Conversation

Predelnik
Copy link
Contributor

It adds opt-in define CATCH_CONFIG_CPP_11_STREAM_INSERTABLE_CHECK for enabling C++11 stream insertable check which should be better in some cases as suggested by @philsquared in #872.
All current tests seem to pass fine with it on my system.

Should I also add it to documentation somewhere?

PR should resolve #872 and #757 for those who opt-in.

@horenmar
Copy link
Member

horenmar commented Apr 4, 2017

You should explain the toggle in docs/configuration.md, but generally looks it looks good.

I'll fix-up whitespace and fmt later.

CATCH_CONFIG_CPP11_STREAM_INSERTABLE_CHECK needs to be defined.
@Predelnik
Copy link
Contributor Author

I added explanation and removed weird underscore between CPP and 11

@horenmar horenmar merged commit 94425ad into catchorg:master Apr 5, 2017
@horenmar
Copy link
Member

horenmar commented Apr 5, 2017

It's in and I have to say, I honestly can't wait till Catch Classic is put into legacy mode, there is way too many C++11 toggles to test properly.

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

Successfully merging this pull request may close these issues.

Compilation error when private base of class of tested variable is "ostreamable" but class itself isn't
2 participants