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

catch2 compile error with non-ostreamable types due to range io #1772

Open
timblechmann opened this issue Mar 11, 2023 · 0 comments
Open

catch2 compile error with non-ostreamable types due to range io #1772

timblechmann opened this issue Mar 11, 2023 · 0 comments

Comments

@timblechmann
Copy link

catch2 has some range matchers like RangeEquals. however i'm running into the following problem:

  • my underlying type is not ostreamable
  • view_interface provides operator<< unless IO is explicitly disabled via RANGES_V3_DISABLE_IO
  • catch2's range matchers will try to stringify the range via operator<<

as a workaround i can compile my unit tests with RANGES_V3_DISABLE_IO, but i wonder if view_interface::operator<< can be enabled only if the underlying type supports operator<<?

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

No branches or pull requests

1 participant