diff --git a/include/boost/counting_iterator.hpp b/include/boost/counting_iterator.hpp index 6dedaef..aacd050 100644 --- a/include/boost/counting_iterator.hpp +++ b/include/boost/counting_iterator.hpp @@ -161,8 +161,9 @@ template struct counting_iterator_traits { private: typedef ::boost::detail::counting_iterator_traits_select<( - detail::is_numeric::value - )>::template traits traits; + ::boost::detail::is_numeric::value + )> binder; + typedef typename binder::template traits traits; public: typedef Incrementable value_type; typedef const Incrementable& reference;