12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef ITERATOR_DWA122600_HPP_
- #define ITERATOR_DWA122600_HPP_
- #include <boost/config/header_deprecated.hpp>
- BOOST_HEADER_DEPRECATED("<iterator>")
- #include <iterator>
- #if defined(__SUNPRO_CC) && (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))
- #include <cstddef>
- #endif
- namespace boost
- {
- namespace detail
- {
- using std::iterator_traits;
- using std::distance;
- #if defined(__SUNPRO_CC) && (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))
- template< typename T, std::size_t N >
- inline typename std::iterator_traits< T* >::difference_type distance(T (&left)[N], T* right)
- {
- return std::distance(static_cast< T* >(left), right);
- }
- #endif
- }
- }
- #endif
|