From c18e5d946489db68cdae802a1659f02aa6c78f58 Mon Sep 17 00:00:00 2001 From: Fernando Cacciola Date: Fri, 28 Nov 2003 15:33:51 +0000 Subject: [PATCH] Fixed bcc5.5.1 [SVN r20991] --- include/boost/optional.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/include/boost/optional.hpp b/include/boost/optional.hpp index 6096bcb..69317ad 100644 --- a/include/boost/optional.hpp +++ b/include/boost/optional.hpp @@ -58,7 +58,13 @@ #define BOOST_OPTIONAL_NO_INPLACE_FACTORY_SUPPORT #endif -#if BOOST_WORKAROUND(__BORLANDC__, <= 0x564) +#if BOOST_WORKAROUND(__BORLANDC__, <= 0x551) +// BCB (5.5.1) cannot parse the nested template struct in an inplace factory. +#define BOOST_OPTIONAL_NO_INPLACE_FACTORY_SUPPORT +#endif + +#if !defined(BOOST_OPTIONAL_NO_INPLACE_FACTORY_SUPPORT) \ + && BOOST_WORKAROUND(__BORLANDC__, <= 0x564) // BCB (up to 5.64) has the following bug: // If there is a member function/operator template of the form // template mfunc( Expr expr ) ; @@ -69,11 +75,6 @@ #endif -#if BOOST_WORKAROUND(__BORLANDC__, <= 0x551) -// BCB (5.5.1) cannot parse the nested template struct in an inplace factory. -#define BOOST_OPTIONAL_NO_INPLACE_FACTORY_SUPPORT -#endif - namespace boost { class InPlaceFactoryBase ;