Boost logo

Boost :

From: Robert Kawulak (kawulak_at_[hidden])
Date: 2006-02-01 05:26:18


> From: AlisdairM

> Borland does not like the new version of compressed pair.

That's a pity... OTOH with Borland 5.6.4 it compiles fine.

> 157a158,161
> > #if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x581))
> > first_reference first() {return *this;}
> > first_const_reference first() const {return *this;}
> > #else
> 159a164
> > #endif

I think this should rather be:

#if BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x846))
#define BOOST_PRIVATE_BASE_CAST(type, arg) static_cast<type>(arg)
#else
#define BOOST_PRIVATE_BASE_CAST(type, arg) (arg)
#endif

And later in the appropriate lines:

first_reference first()
  { return BOOST_PRIVATE_BASE_CAST(first_reference, *this); }
first_const_reference first() const
  { return BOOST_PRIVATE_BASE_CAST(first_const_reference, *this);
}

Best regards,
Robert


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