[mlpack-svn] r14042 - mlpack/trunk/src/mlpack/core/util

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Dec 21 13:13:08 EST 2012


Author: rcurtin
Date: 2012-12-21 13:13:08 -0500 (Fri, 21 Dec 2012)
New Revision: 14042

Modified:
   mlpack/trunk/src/mlpack/core/util/sfinae_utility.hpp
Log:
Fix line widths.


Modified: mlpack/trunk/src/mlpack/core/util/sfinae_utility.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/util/sfinae_utility.hpp	2012-12-21 17:52:24 UTC (rev 14041)
+++ mlpack/trunk/src/mlpack/core/util/sfinae_utility.hpp	2012-12-21 18:13:08 UTC (rev 14042)
@@ -19,10 +19,10 @@
  * This macro generates a template struct that is useful for enabling/disabling
  * a method if the template class passed in contains a member function matching
  * a given signature with a specified name.
- * 
+ *
  * The generated struct should be used in conjunction with boost::disable_if and
  * boost::enable_if. Here is an example usage:
- * 
+ *
  * For general references, see:
  * http://stackoverflow.com/a/264088/391618
  *
@@ -32,15 +32,15 @@
  * @param NAME the name of the struct to construct. For example: HasToString
  * @param FUNC the name of the function to check for. For example: ToString
  */
-#define HAS_MEM_FUNC(FUNC, NAME)                                                \
-template<typename T, typename sig>                                              \
-struct NAME {                                                                   \
-  typedef char yes[1];                                                          \
-  typedef char no [2];                                                          \
-  template<typename U, U> struct type_check;                                    \
-  template<typename _1> static yes &chk(type_check<sig, &_1::FUNC> *);          \
-  template<typename   > static no  &chk(...);                                   \
-  static bool const value = sizeof(chk<T>(0)) == sizeof(yes);                   \
+#define HAS_MEM_FUNC(FUNC, NAME)                                               \
+template<typename T, typename sig>                                             \
+struct NAME {                                                                  \
+  typedef char yes[1];                                                         \
+  typedef char no [2];                                                         \
+  template<typename U, U> struct type_check;                                   \
+  template<typename _1> static yes &chk(type_check<sig, &_1::FUNC> *);         \
+  template<typename   > static no  &chk(...);                                  \
+  static bool const value = sizeof(chk<T>(0)) == sizeof(yes);                  \
 };
 
 #endif




More information about the mlpack-svn mailing list