
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