You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like that "transform-join-to_vector" sequence causes the warning. The same code without transform or join doesn't yield the warning.
This issue represents two problems:
Correctness. It's unclear if the instantiated problematic code return (RANGES_EXPECT(false), 0); is ever executed. Are there any circumstances when this RANGE_EXPECT may fire? Is the code like in the example incorrect?
Build. Building the code with and without NDEBUG has different results in terms of warnings. It would be more convenient to software developer to have the same amount or more of warnings in debug mode than in release mode.
The text was updated successfully, but these errors were encountered:
The symptom is the same as in #1762. The solution proposed there (silencing the warning) is not always suitable.
range-v3: v0.12.0 and latest master (commit 53c40dd).
Compiler: MSVC 19.37.32825.0, also checked on latest MSVC with Compiler Explorer.
Compiler parameters:
/std:c++20 /W4 /DNDEBUG
Code that triggers the warning (simplified from real life code):
(run)
It looks like that "transform-join-to_vector" sequence causes the warning. The same code without transform or join doesn't yield the warning.
This issue represents two problems:
return (RANGES_EXPECT(false), 0);
is ever executed. Are there any circumstances when this RANGE_EXPECT may fire? Is the code like in the example incorrect?The text was updated successfully, but these errors were encountered: