
Borland does not like the new version of compressed pair. It turns out it cannot handle static_cast-ing a class to reference to private base, although it will allow implicit conversion. Hence the patch simply drops the casts on the Borland compilers: cvs diff -wb -- boost\detail\compressed_pair.hpp (in directory E:\sourceforge\devel\boost\) Index: boost/detail/compressed_pair.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/detail/compressed_pair.hpp,v retrieving revision 1.13 diff -w -b -r1.13 compressed_pair.hpp 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 202a208,211 #if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x581)) second_reference second() {return *this; } second_const_reference second() const {return *this; } #else 204a214 #endif 243a254,260 #if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x581)) first_reference first() {return *this;} first_const_reference first() const {return *this;}
second_reference second() {return *this; } second_const_reference second() const {return *this; } #else 248a266 #endif 282a301,304 #if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x581)) first_reference first() {return *this;} first_const_reference first() const {return *this;} #else 284a307 #endif
-- AlisdairM