Boost logo

Boost :

From: DY, JERRY U \(SBCSI\) (jd2419_at_[hidden])
Date: 2004-07-23 11:26:35

The only workaround I have is to surround the static assertion with

#if !defined (__HP_aCC)

The assumption is that if "advance" is called, the compiler errors
eventually anyway so this change should be harmless (and lets aC++
compile the code). I had to do the same for "decrement" and
"distance_to" member functions.

Is this workaround okay? I probably should check this in only after 1.32
release in any case.


-----Original Message-----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of David Abrahams
Sent: Thursday, July 22, 2004 10:36 AM
To: boost_at_[hidden]
Subject: [boost] Re: counting_iterator_test.hpp fails on aC++

"DY, JERRY U \(SBCSI\)" <jd2419_at_[hidden]> writes:

> The problem is that since my_int2 is not a random access iterator,
> iterator_adaptor's member function "advance" would not compile because
> of the static assertion below trying to convert
> random_access_traversal_tag to bidirectional_traversal_tag
> (my_traversal).

It should never be instantiated, because it should never be called.
This is a compiler bug.

Dave Abrahams
Boost Consulting
Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at