From 05045f5be7c2f04b8b3ed3b7c5e8f7d2df67c80b Mon Sep 17 00:00:00 2001 From: Fernando Cacciola Date: Tue, 27 Jan 2004 13:46:50 +0000 Subject: [PATCH] Fixed overload resolution problem with operator= in bcc5.6.4 [SVN r21999] --- include/boost/optional.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/optional.hpp b/include/boost/optional.hpp index 69317ad..21d52d8 100644 --- a/include/boost/optional.hpp +++ b/include/boost/optional.hpp @@ -426,7 +426,7 @@ class optional : public optional_detail::optional_base // No-throw (assuming T::~T() doesn't) ~optional() {} -#ifndef BOOST_OPTIONAL_NO_INPLACE_FACTORY_SUPPORT +#if !defined(BOOST_OPTIONAL_NO_INPLACE_FACTORY_SUPPORT) && !defined(BOOST_OPTIONAL_WEAK_OVERLOAD_RESOLUTION) // Assigns from an expression. See corresponding constructor. // Basic Guarantee: If the resolved T ctor throws, this is left UNINITIALIZED template