[mlpack-svn] r14354 - mlpack/trunk/src/mlpack/core/util
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Feb 21 12:41:51 EST 2013
Author: rcurtin
Date: 2013-02-21 12:41:51 -0500 (Thu, 21 Feb 2013)
New Revision: 14354
Modified:
mlpack/trunk/src/mlpack/core/util/prefixedoutstream.hpp
mlpack/trunk/src/mlpack/core/util/prefixedoutstream_impl.hpp
Log:
Move default arguments into declaration of function to make clang happy.
Modified: mlpack/trunk/src/mlpack/core/util/prefixedoutstream.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/util/prefixedoutstream.hpp 2013-02-21 02:29:42 UTC (rev 14353)
+++ mlpack/trunk/src/mlpack/core/util/prefixedoutstream.hpp 2013-02-21 17:41:51 UTC (rev 14354)
@@ -123,27 +123,27 @@
void CallBaseLogic(const T& s,
typename boost::disable_if<
boost::is_class<T>
- >::type*);
+ >::type* = 0);
//! Forward all objects that do not implement a ToString() method
template<typename T>
void CallBaseLogic(const T& s,
typename boost::enable_if<
boost::is_class<T>
- >::type*,
+ >::type* = 0,
typename boost::disable_if<
HasToString<T, std::string(T::*)() const>
- >::type*);
+ >::type* = 0);
//! Call ToString() on all objects that implement ToString() before forwarding
template<typename T>
void CallBaseLogic(const T& s,
typename boost::enable_if<
boost::is_class<T>
- >::type*,
+ >::type* = 0,
typename boost::enable_if<
HasToString<T, std::string(T::*)() const>
- >::type*);
+ >::type* = 0);
/**
* @brief Conducts the base logic required in all the operator << overloads.
Modified: mlpack/trunk/src/mlpack/core/util/prefixedoutstream_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/util/prefixedoutstream_impl.hpp 2013-02-21 02:29:42 UTC (rev 14353)
+++ mlpack/trunk/src/mlpack/core/util/prefixedoutstream_impl.hpp 2013-02-21 17:41:51 UTC (rev 14354)
@@ -27,7 +27,7 @@
void PrefixedOutStream::CallBaseLogic(const T& s,
typename boost::disable_if<
boost::is_class<T>
- >::type* = 0)
+ >::type*)
{
BaseLogic<T>(s);
}
@@ -37,10 +37,10 @@
void PrefixedOutStream::CallBaseLogic(const T& s,
typename boost::enable_if<
boost::is_class<T>
- >::type* = 0,
+ >::type*,
typename boost::disable_if<
HasToString<T, std::string(T::*)() const>
- >::type* = 0)
+ >::type*)
{
BaseLogic<T>(s);
}
@@ -50,10 +50,10 @@
void PrefixedOutStream::CallBaseLogic(const T& s,
typename boost::enable_if<
boost::is_class<T>
- >::type* = 0,
+ >::type*,
typename boost::enable_if<
HasToString<T, std::string(T::*)() const>
- >::type* = 0)
+ >::type*)
{
std::string result = s.ToString();
BaseLogic<std::string>(result);
More information about the mlpack-svn
mailing list