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
Can you explain why ranges::tranform can be compiled with c++20, but failed to be compiled with c++17?
ranges::tranform
#include <algorithm> #include <cmath> #include <iterator> #include <set> #include <range/v3/algorithm.hpp> int main () { std::vector<double> a{1.5,2.5,3.5}; std::set<double> b; std::ranges::transform( a, std::inserter( b, b.begin() ), []( double v ) -> double { return std::round( v ); } ); // compiles with c++20 ranges::transform( a, std::inserter( b, b.begin() ), []( double v ) -> double { return std::round( v ); } ); // compiles with c++20, but does not compile with c++17 return 0; }
gcc version: 14.1 range-v3 version: 0.12.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Can you explain why
ranges::tranform
can be compiled with c++20, but failed to be compiled with c++17?gcc version: 14.1
range-v3 version: 0.12.0
The text was updated successfully, but these errors were encountered: