Closed Lastique closed 4 years ago
Thanks for the PR @Lastique . Will this code work OK with C++03?
Yes, I see no reason why it shouldn't.
Thank you. Do we need <iterator>
at all? I don't see us using any iterator traits from std
. Should we remove the Boost traits entirely and use std::iterator_traits<Iterator>::value_type
instead?
There is a call to std::advance
down in the code.
Ah, OK. What do you think about replacing boost::iterators::iterator_value
with std::iterator_traits<>::value_type
and eliminating the Boost header entirely?
Sure, I can do that.
Done.
@Lastique Travis failed with a Clang issue related to Filesystem - it looks like you were the last to touch the associated file :) Would you be willing to look at the failure?
That failure is unrelated to this PR. Looks like struct stat
has unexpected layout on Darwin, which makes Boost.Filesystem fail to compile. I'll take care of that in Boost.Filesystem.
You can restart the CI job, it should succeed now.
The header is deprecated in favor of
<iterator>
. It generates compiler warnings and will be removed in a future release.Also, added a missing include for
iterator_value
trait.