From 3a593469ad36df7cc1c7a91c11856fccfd15de91 Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Mon, 25 Jul 2016 15:19:42 +0200
Subject: [PATCH] [BL] added comment

---
 BaseLib/Functional.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/BaseLib/Functional.h b/BaseLib/Functional.h
index 4553dc09a34..841ae244d3c 100644
--- a/BaseLib/Functional.h
+++ b/BaseLib/Functional.h
@@ -173,6 +173,8 @@ template <typename Object, typename MethodClass, typename ReturnType,
           typename... Args>
 typename std::enable_if<
     std::is_same<MethodClass,
+                 /* Note: All of remove_cv, remove_pointer and decay is
+                  * necessary, e.g. if method is a member function pointer. */
                  typename std::remove_cv<typename std::remove_pointer<
                      typename std::decay<Object>::type>::type>::type>::value,
     std::function<ReturnType(Args...)>>::type
-- 
GitLab