Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50235 - trunk/boost/flyweight
From: joaquin_at_[hidden]
Date: 2008-12-10 17:00:34


Author: joaquin
Date: 2008-12-10 17:00:33 EST (Wed, 10 Dec 2008)
New Revision: 50235
URL: http://svn.boost.org/trac/boost/changeset/50235

Log:
added workaround for http://bugs.sun.com/view_bug.do?bug_id=6782987 from Simon Atanasyan
Text files modified:
   trunk/boost/flyweight/flyweight.hpp | 46 ++++++++++++++++++++++++++++++++++++++++
   1 files changed, 46 insertions(+), 0 deletions(-)

Modified: trunk/boost/flyweight/flyweight.hpp
==============================================================================
--- trunk/boost/flyweight/flyweight.hpp (original)
+++ trunk/boost/flyweight/flyweight.hpp 2008-12-10 17:00:33 EST (Wed, 10 Dec 2008)
@@ -58,6 +58,52 @@
 
 } /* namespace flyweights::detail */
 
+#if BOOST_WORKAROUND(__SUNPRO_CC,<=0x590)
+/* Workaround for http://bugs.sun.com/view_bug.do?bug_id=6782987
+ * from Simon Atanasyan.
+ */
+
+template struct parameter::parameters<
+ parameter::optional<
+ parameter::deduced<tag<> >,
+ detail::is_tag<boost::mpl::_>
+ >,
+ parameter::optional<
+ parameter::deduced<tracking<> >,
+ is_tracking<boost::mpl::_>
+ >,
+ parameter::optional<
+ parameter::deduced<factory<> >,
+ is_factory<boost::mpl::_>
+ >,
+ parameter::optional<
+ parameter::deduced<locking<> >,
+ is_locking<boost::mpl::_>
+ >,
+ parameter::optional<
+ parameter::deduced<holder<> >,
+ is_holder<boost::mpl::_>
+ >
+>;
+
+template struct parameter::parameters<
+ parameter::optional<
+ parameter::deduced<
+ detail::unmatched_arg
+ >,
+ mpl::not_<
+ mpl::or_<
+ detail::is_tag<boost::mpl::_>,
+ is_tracking<boost::mpl::_>,
+ is_factory<boost::mpl::_>,
+ is_locking<boost::mpl::_>,
+ is_holder<boost::mpl::_>
+ >
+ >
+ >
+>;
+#endif
+
 template<
   typename T,
   typename Arg1,typename Arg2,typename Arg3,typename Arg4,typename Arg5


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