Extracted enable_if_convertible trait to a separate header.

Keep including the new header in iterator_adaptor.hpp for backward
compatibility, until downstream users are updated to include the new
header.
This commit is contained in:
Andrey Semashev
2025-02-06 01:38:24 +03:00
parent c22af90b60
commit cb81a1dfc3
9 changed files with 94 additions and 63 deletions
+2 -1
View File
@@ -11,6 +11,7 @@
#include <type_traits>
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/iterator/enable_if_convertible.hpp>
#include <boost/pointee.hpp>
#include <boost/indirect_reference.hpp>
@@ -84,7 +85,7 @@ public:
typename Category2,
typename Reference2,
typename Difference2,
typename = typename enable_if_convertible< Iterator2, Iterator >::type
typename = enable_if_convertible_t< Iterator2, Iterator >
>
indirect_iterator(indirect_iterator< Iterator2, Value2, Category2, Reference2, Difference2 > const& y) :
super_t(y.base())