We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
P2415R2_owning_view\test.cpp
Currently P2415R2_owning_view\test.cpp looks like this:
// [banner, headers] struct instantiator { template <ranges::input_range R> static constexpr void call() { if constexpr (move_constructible<R>) { // [ALL TESTS] } } }; int main() { STATIC_ASSERT((test_in<instantiator, int>(), true)); test_in<instantiator, int>(); }
When we add extra constraint to instantiator::call, which is negation of the condition in if constexpr statement:
instantiator::call
if constexpr
struct instantiator { template <ranges::input_range R> requires (!move_constructible<R>) static constexpr void call() { if constexpr (move_constructible<R>) { // [ALL TESTS] } } };
The test still passes, which means that the // [ALL TESTS] part is never executed.
// [ALL TESTS]
The text was updated successfully, but these errors were encountered:
P2415R2_owning_view/test.cpp
Successfully merging a pull request may close this issue.
Currently
P2415R2_owning_view\test.cpp
looks like this:When we add extra constraint to
instantiator::call
, which is negation of the condition inif constexpr
statement:The test still passes, which means that the
// [ALL TESTS]
part is never executed.The text was updated successfully, but these errors were encountered: