[libsigc++2] can_deduce_result_type_with_decltype: Rename the check() methods



commit 9bd7f99838f1fb0f67fe5a66155dc13d075041df
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Tue Dec 15 16:27:36 2015 +0100

    can_deduce_result_type_with_decltype: Rename the check() methods
    
    * sigc++/functors/macros/functor_trait.h.m4: Rename the check() methods.
    check() is a preprocessor macro in Mac OS X. Bug #759315.

 sigc++/functors/macros/functor_trait.h.m4 |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/sigc++/functors/macros/functor_trait.h.m4 b/sigc++/functors/macros/functor_trait.h.m4
index 27a161d..142e5f2 100644
--- a/sigc++/functors/macros/functor_trait.h.m4
+++ b/sigc++/functors/macros/functor_trait.h.m4
@@ -113,7 +113,7 @@ struct nil {};
  */
 struct functor_base {};
 
-/** Helper macro, to determine if decltype() can deduce the result type of a functor.
+/** Helper class, to determine if decltype() can deduce the result type of a functor.
  *
  * @ingroup sigcfunctors
  */
@@ -129,17 +129,17 @@ private:
     int memory4;
   };
 
-  static biggerthanint check(...);
+  static biggerthanint checksize(...);
 
-  // If decltype(&X_functor::operator()) can't be evaluated, this check() overload
+  // If decltype(&X_functor::operator()) can't be evaluated, this checksize() overload
   // is ignored because of the SFINAE rule (Substitution Failure Is Not An Error).
   template <typename X_functor>
-  static int check(X_functor* obj, decltype(&X_functor::operator()) p = nullptr);
+  static int checksize(X_functor* obj, decltype(&X_functor::operator()) p = nullptr);
 
 public:
   static const bool value
 #ifndef DOXYGEN_SHOULD_SKIP_THIS
-    = sizeof(check(static_cast<T_functor*>(nullptr))) == sizeof(int)
+    = sizeof(checksize(static_cast<T_functor*>(nullptr))) == sizeof(int)
 #endif
     ;
 };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]