From 0cd04953bf3a29d7f2b6d97eeff461014501501f Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Sat, 22 Jan 2005 17:18:53 +0000 Subject: [PATCH] Fixed placement new detection for GCC 4 Seems that only Intel Linux has a good placement new svn path=/trunk/boost/boost/numeric/ublas/; revision=26806 --- include/boost/numeric/ublas/detail/config.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/numeric/ublas/detail/config.hpp b/include/boost/numeric/ublas/detail/config.hpp index 071e8836..97ddf3db 100644 --- a/include/boost/numeric/ublas/detail/config.hpp +++ b/include/boost/numeric/ublas/detail/config.hpp @@ -59,8 +59,8 @@ // GNU Compiler Collection #if defined (__GNUC__) && ! defined (BOOST_STRICT_CONFIG) -#if __GNUC__ >= 3 && __GNUC_MINOR__ >= 4 -// By ABI definition see GCC bug id 9982 +#if __GNUC__ >= 4 || (__GNUC__ >= 3 && __GNUC_MINOR__ >= 4) +// Specified by ABI definition see GCC bug id 9982 #define BOOST_UBLAS_USEFUL_ARRAY_PLACEMENT_NEW #endif @@ -74,7 +74,7 @@ // Intel Compiler #if defined (BOOST_INTEL) && ! defined (BOOST_STRICT_CONFIG) -#if (BOOST_INTEL >= 800) +#if defined (BOOST_INTEL_LINUX) && (BOOST_INTEL_LINUX >= 800) // By inspection of compiler results #define BOOST_UBLAS_USEFUL_ARRAY_PLACEMENT_NEW #endif