From 271ea9e901bdbb8110ab200d8584da37a7864042 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 27 Feb 2006 21:57:38 +0000 Subject: [PATCH] Borland 5.81 fix (Alisdair Meredith) [SVN r33161] --- include/boost/ref.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/ref.hpp b/include/boost/ref.hpp index 3745e7c..ab09ae7 100644 --- a/include/boost/ref.hpp +++ b/include/boost/ref.hpp @@ -10,6 +10,7 @@ #include #include #include +#include // // ref.hpp - ref/cref, useful helper functions @@ -33,7 +34,7 @@ template class reference_wrapper public: typedef T type; -#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) +#if defined( BOOST_MSVC ) && BOOST_WORKAROUND( BOOST_MSVC, < 1300 ) explicit reference_wrapper(T& t): t_(&t) {} @@ -54,7 +55,7 @@ private: T* t_; }; -# if defined(__BORLANDC__) && (__BORLANDC__ <= 0x570) +# if defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x581) ) # define BOOST_REF_CONST # else # define BOOST_REF_CONST const