Scheduler/Console: Fix bit-number-lookup-magic to work under 64bit
[senf.git] / Scheduler / Console / ParsedCommand.hh
index 107ed65..4de6952 100644 (file)
@@ -23,8 +23,8 @@
 /** \file
     \brief ParsedCommand public header */
 
-#ifndef HH_ParsedCommand_
-#define HH_ParsedCommand_ 1
+#ifndef HH_SENF_Scheduler_Console_ParsedCommand_
+#define HH_SENF_Scheduler_Console_ParsedCommand_ 1
 
 // Custom includes
 
@@ -565,7 +565,9 @@ namespace console {
 
     template <class Function>
     typename detail::ParsedCommandTraits<Function>::Attributor
-    senf_console_add_node(DirectoryNode & node, std::string const & name, Function fn, int);
+    senf_console_add_node(DirectoryNode & node, std::string const & name, Function fn, int,
+                          typename boost::enable_if_c<
+                              detail::ParsedCommandTraits<Function>::is_callable>::type * = 0);
 
     template <class Signature>
     typename detail::ParsedCommandTraits<Signature>::Attributor