Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2003-05-08 08:02:26


Joaquín Mª López Muñoz <joaquin_at_[hidden]> writes:

> The following produces an internal compiler crash in MSVC 6.5
>
> #include <set>
> #include <boost/iterator_adaptors.hpp>
>
> int main()
> {
> typedef std::set<int *> type0;
> typedef boost::indirect_iterator_generator<
> type0::iterator,const int>::type type1;
>
> type0 s;
> type1 it(s.begin());
>
> return 0;
> }
>
> This happens for std::set only, using say std::vector instead works
> fine.
> Is some workaround known? TIA

All I can suggest is that you try the new iterator adaptors library in
the sandbox. It's much better behaved w.r.t. broken compiler bugs.

-Dave

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net