Boost logo

Boost-Commit :

From: dave_at_[hidden]
Date: 2008-03-25 16:47:38


Author: dave
Date: 2008-03-25 16:47:38 EDT (Tue, 25 Mar 2008)
New Revision: 43861
URL: http://svn.boost.org/trac/boost/changeset/43861

Log:
Work around intel-10.0-win compiler bug

Text files modified:
   trunk/boost/concept/requires.hpp | 8 ++++++--
   1 files changed, 6 insertions(+), 2 deletions(-)

Modified: trunk/boost/concept/requires.hpp
==============================================================================
--- trunk/boost/concept/requires.hpp (original)
+++ trunk/boost/concept/requires.hpp 2008-03-25 16:47:38 EDT (Tue, 25 Mar 2008)
@@ -4,6 +4,7 @@
 #ifndef BOOST_CONCEPT_REQUIRES_DWA2006430_HPP
 # define BOOST_CONCEPT_REQUIRES_DWA2006430_HPP
 
+# include <boost/config.hpp>
 # include <boost/parameter/aux_/parenthesized_type.hpp>
 # include <boost/concept/assert.hpp>
 # include <boost/preprocessor/seq/for_each.hpp>
@@ -38,8 +39,11 @@
 # endif
 };
 
-
-#define BOOST_CONCEPT_REQUIRES_(r,data,t) + (::boost::_requires_<void(*)t>::value)
+# if BOOST_WORKAROUND(BOOST_INTEL_WIN, BOOST_TESTED_AT(1010))
+# define BOOST_CONCEPT_REQUIRES_(r,data,t) | (::boost::_requires_<void(*)t>::value)
+# else
+# define BOOST_CONCEPT_REQUIRES_(r,data,t) + (::boost::_requires_<void(*)t>::value)
+# endif
 
 #if defined(NDEBUG) || BOOST_WORKAROUND(BOOST_MSVC, < 1300)
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk