Range library for C++14/17/20, basis for C++20's std::ranges
4.15k
stars
439
forks
source link
With compiling with gcc >= 11.1 for C++20, constraint depending on itself when checking for member begin on constant ref_view around boost range #1823
Open
Aster89 opened 4 months ago
Here is the code
which fails to compile with GCC >= 11.1. Part of the error is copied below:
With each single one of the following crucial changes, the code compiles
const
fromFoo
's definitionstd::list
tostd::vector
-std=c++20
to-std=c++17
when compiling (in this case you also have to changehas_non_member_size_requires_
tohas_non_member_size
)I've at first asked the question on StackOverflow, but haven't received much feedback so far.