Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-12-05 15:14:57


Michel,

I just looked at the code and saw:

#if !defined(BOOST_MSVC)
    // Iterators >= ForwardIterator must produce real references
    // as required by the C++ standard requirements in Table 74.
    BOOST_STATIC_CONSTANT(bool, forward_iter_with_real_reference
      =
(!boost::is_convertible<iterator_category*,std::forward_iterator_tag*>::valu
e)
                             || boost::is_same<reference,value_type&>::value
                             || boost::is_same<reference,const
value_type&>::value));

    // This check gives incorrect results in iter_traits_gen_test.cpp
    BOOST_STATIC_ASSERT(forward_iter_with_real_reference);
#endif

So, are you certain you have an up-to-date version of the code?

----- Original Message -----
From: "p_michel_andre" <michel.andre_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, December 05, 2001 1:41 PM
Subject: [boost] Re: iterator_adaptor: strange compile error

> The | also removes this specific error.
>
> But when removing the other errors I have in my code I'm now left
> with an internal compiler error near or around where I instantiate
> the iterator_adaptor for the first time. If i remove the instatition
> the error goes away.
>
> So I guess I'll have to roll my own iterators or play around a
> little with the one I have to try to resolve the problem.
>
> Since it works in one project and not in the other seems to point to
> build settings or complexity of code generated.
>
> So for this specific case at least we wont have to resort to the
> method you describe.
>
> /Michel
>
> --- In boost_at_y..., "David Abrahams" <david.abrahams_at_r...> wrote:
> > Something else to try:
> > use | and & instead of || and &&. I've found that to make a
> difference with
> > some compilers.
> > We might have to resort to the type_traits method of using value
> wrapper
> > types and logical operator templates. :(
>
>
>
> Info: http://www.boost.org Send unsubscribe requests to:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


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