|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60615 - trunk/boost/random/detail
From: steven_at_[hidden]
Date: 2010-03-15 12:46:54
Author: steven_watanabe
Date: 2010-03-15 12:46:53 EDT (Mon, 15 Mar 2010)
New Revision: 60615
URL: http://svn.boost.org/trac/boost/changeset/60615
Log:
Attempt to fix Sun CC 5.10 failures
Text files modified:
trunk/boost/random/detail/seed.hpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Modified: trunk/boost/random/detail/seed.hpp
==============================================================================
--- trunk/boost/random/detail/seed.hpp (original)
+++ trunk/boost/random/detail/seed.hpp 2010-03-15 12:46:53 EDT (Mon, 15 Mar 2010)
@@ -15,7 +15,9 @@
#include <boost/config.hpp>
-#if !defined(BOOST_NO_SFINAE)
+// Sun seems to have trouble with the use of SFINAE for the
+// templated constructor.
+#if !defined(BOOST_NO_SFINAE) && !defined(__SUNPRO_CC)
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_arithmetic.hpp>
@@ -31,8 +33,7 @@
struct disable_constructor : disable_seed<T> {};
template<class Engine>
-struct disable_constructor<Engine, Engine> {
-};
+struct disable_constructor<Engine, Engine> {};
#define BOOST_RANDOM_DETAIL_GENERATOR_CONSTRUCTOR(Self, Generator, gen) \
template<class Generator> \
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