|
Boost-Commit : |
From: tschwinger_at_[hidden]
Date: 2008-02-06 08:00:09
Author: t_schwinger
Date: 2008-02-06 08:00:08 EST (Wed, 06 Feb 2008)
New Revision: 43125
URL: http://svn.boost.org/trac/boost/changeset/43125
Log:
attempts to make synthesis metafunctions work with sun compiler
Text files modified:
trunk/boost/function_types/detail/cv_traits.hpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Modified: trunk/boost/function_types/detail/cv_traits.hpp
==============================================================================
--- trunk/boost/function_types/detail/cv_traits.hpp (original)
+++ trunk/boost/function_types/detail/cv_traits.hpp 2008-02-06 08:00:08 EST (Wed, 06 Feb 2008)
@@ -12,7 +12,9 @@
#include <cstddef>
#include <boost/detail/workaround.hpp>
-#if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) || BOOST_WORKAROUND(__BORLANDC__, <= 0x582)
+#if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
+ || BOOST_WORKAROUND(__BORLANDC__, <= 0x582) \
+ || BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x590))
# include <boost/type_traits/remove_cv.hpp>
# include <boost/type_traits/remove_pointer.hpp>
# include <boost/type_traits/remove_reference.hpp>
@@ -25,7 +27,9 @@
namespace ft = boost::function_types;
-#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !BOOST_WORKAROUND(__BORLANDC__, <= 0x582)
+#if ! (defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \
+ || BOOST_WORKAROUND(__BORLANDC__, <= 0x582) \
+ || BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x590)))
template<typename T> struct cv_traits
{ typedef non_cv tag; typedef T type; };
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