Closed TristanFloch closed 2 years ago
Any news on this?
Any news on this?
None yet.
The relatively new BOOST_CXX_VERSION
is what one uses nowadays, if no appropriate Config or feature macro exists.
In this case, the feature test macro that controls whether <iterator>
has the new tags and iterator_concept
seems to be __cpp_lib_ranges
. (<iterator>
must have been included beforehand.)
In this case, the feature test macro that controls whether
<iterator>
has the new tags anditerator_concept
seems to be__cpp_lib_ranges
. (<iterator>
must have been included beforehand.)
In theory, for C++20 features we could also check if
Checking for header existence is pretty useless in practice, as the header might exist but be empty or generate an #error
. Fortunately, there's no need for that here, because <iterator>
always exists.
Fixes #195.
I was a bit surprised that there were no better way to check if the standard was C++20. Please correct me if there is.