diff options
Diffstat (limited to 'boost/archive/iterators/remove_whitespace.hpp')
-rw-r--r-- | boost/archive/iterators/remove_whitespace.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/boost/archive/iterators/remove_whitespace.hpp b/boost/archive/iterators/remove_whitespace.hpp index a8e1092983..a01049faf0 100644 --- a/boost/archive/iterators/remove_whitespace.hpp +++ b/boost/archive/iterators/remove_whitespace.hpp @@ -24,6 +24,7 @@ #include <boost/iterator/iterator_adaptor.hpp> #include <boost/iterator/filter_iterator.hpp> +#include <boost/iterator/iterator_traits.hpp> //#include <boost/detail/workaround.hpp> //#if ! BOOST_WORKAROUND(BOOST_MSVC, <=1300) @@ -140,13 +141,19 @@ public: template<class Base> class remove_whitespace : public filter_iterator< - remove_whitespace_predicate<BOOST_DEDUCED_TYPENAME Base::value_type>, + remove_whitespace_predicate< + BOOST_DEDUCED_TYPENAME boost::iterator_value<Base>::type + //BOOST_DEDUCED_TYPENAME Base::value_type + >, Base > { friend class boost::iterator_core_access; typedef filter_iterator< - remove_whitespace_predicate<BOOST_DEDUCED_TYPENAME Base::value_type>, + remove_whitespace_predicate< + BOOST_DEDUCED_TYPENAME boost::iterator_value<Base>::type + //BOOST_DEDUCED_TYPENAME Base::value_type + >, Base > super_t; public: |