|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66835 - trunk/boost/type_traits
From: rwgk_at_[hidden]
Date: 2010-11-28 21:26:52
Author: rwgk
Date: 2010-11-28 21:26:46 EST (Sun, 28 Nov 2010)
New Revision: 66835
URL: http://svn.boost.org/trac/boost/changeset/66835
Log:
boost/type_traits/common_type.hpp: workaround for gcc 3.2 and 3.3 to avoid spurious warning
Text files modified:
trunk/boost/type_traits/common_type.hpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Modified: trunk/boost/type_traits/common_type.hpp
==============================================================================
--- trunk/boost/type_traits/common_type.hpp (original)
+++ trunk/boost/type_traits/common_type.hpp 2010-11-28 21:26:46 EST (Sun, 28 Nov 2010)
@@ -120,6 +120,11 @@
public:
typedef BOOST_TYPEOF_TPL(declval_b() ? declval_T() : declval_U()) type;
#endif
+
+#if defined(__GNUC__) && __GNUC__ == 3 && (__GNUC_MINOR__ == 2 || __GNUC_MINOR__ == 3)
+ public:
+ void public_dummy_function_just_to_silence_warning();
+#endif
};
template <class T>
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