
20 Aug
2014
20 Aug
'14
9:34 p.m.
On 20/08/2014 15:52, Peter Dimov wrote:
Mathias Gaunard wrote:
Alternatively, Boost could provide a boost::iterator_traits that always behaves like C++14's (and would even be an alias to std::iterator_traits in C++14)
Iterators without nested types specialize std::iterator_traits. boost::iterator_traits will not work for them.
Users that want boost::is_iterator to work on such iterators will need to specialize boost::iterator_traits in addition to std::iterator_traits. Boost could also pre-emptively specialize iterator_traits for well-known iterators that need this.