From 42877c1d1b36a511e429a4b3c67aa714b2cf68b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20M=2E=20L=C3=B3pez=20Mu=C3=B1oz?= Date: Thu, 2 Dec 2004 18:13:29 +0000 Subject: [PATCH] GCC 2.x workaround extended to GCC < 3.2.3 [SVN r26404] --- include/boost/aligned_storage.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/boost/aligned_storage.hpp b/include/boost/aligned_storage.hpp index 945fca9..c04954b 100644 --- a/include/boost/aligned_storage.hpp +++ b/include/boost/aligned_storage.hpp @@ -68,14 +68,17 @@ public: // constants ) ); -#if !BOOST_WORKAROUND(__GNUC__, <= 2) +#if defined(__GNUC__) &&\ + (__GNUC__ > 3) ||\ + (__GNUC__ == 3 && (__GNUC_MINOR__ > 2 ||\ + (__GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ >=3))) private: // noncopyable aligned_storage(const aligned_storage&); aligned_storage& operator=(const aligned_storage&); -#else // gcc2.x +#else // gcc less than 3.2.3 public: // _should_ be noncopyable, but GCC compiler emits error