Fix Borland regression. Refs #3003.

[SVN r58093]
This commit is contained in:
Peter Dimov
2009-12-02 10:47:01 +00:00
parent e5d99ce085
commit 1bf8cd6c7a
2 changed files with 64 additions and 27 deletions
+10
View File
@@ -1,4 +1,5 @@
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>
#if defined(BOOST_MSVC)
#pragma warning(disable: 4786) // identifier truncated in debug info
@@ -82,11 +83,20 @@ public:
}
};
#if defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x620 ) )
namespace boost
{
#endif
template<class T> T * get_pointer( Y< T > const & y )
{
return y.get();
}
#if defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x620 ) )
} // namespace boost
#endif
int detect_errors(bool x)
{
if( x )