Boost logo

Boost :

From: Gennadiy E. Rozental (rogeeff_at_[hidden])
Date: 2001-09-07 10:42:51


I propose following change in iterator.hpp to be able to
compile it with Solaris Forte C++ 6 u.1

Gennadiy

P.S. some of the chaes may look pritty odd, but I can't help it with
this $%^#$^#%^ compiler
 
cvs diff iterator.hpp
Index: iterator.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/detail/iterator.hpp,v
retrieving revision 1.14
diff -r1.14 iterator.hpp
102c102
< template <bool is_ptr> struct iterator_traits_select;

---
> template <bool is_ptr> struct iterator_traits_select_;
105c105
< template <> struct iterator_traits_select<true>
---
> template <> struct iterator_traits_select_<true>
113c113
< #ifdef BOOST_MSVC
---
> #if defined(BOOST_MSVC) || defined (__SUNPRO_CC)
334c334
< template <> struct iterator_traits_select<false>
---
> template <> struct iterator_traits_select_<false>
373a374,384
> template <bool is_ptr> struct iterator_traits_select__ 
> : public iterator_traits_select_<is_ptr> {};
> 
> template <class Iterator> 
> struct iterator_traits_select
> {
> 	enum { is_ptr = is_pointer<Iterator>::value };
> 	typedef iterator_traits_select__<is_ptr> Selector;
> 	typedef Selector::template traits<Iterator> traits;
> };
> 
378c389
<     : 
iterator_traits_::iterator_traits_select<is_pointer<Iterator>::value>:
:template traits<Iterator>
---
>     : public 
iterator_traits_::iterator_traits_select<Iterator>::traits
381,382c392
<     typedef typename iterator_traits_::iterator_traits_select<
<         is_pointer<remove_cv<Iterator>::type>::value>::template 
traits<Iterator> traits;
---
>     typedef typename 
iterator_traits_::iterator_traits_select<Iterator>::traits traits;
385a396
> #ifdef BOOST_MSVC
387a399
> #endif

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk