Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Error storing instance of member function template

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.13 sec, absolute service time: 0,22 sec 
edit mode |  history
Error(s):
source_file.cpp: In instantiation of ‘Derived::Derived(C*) [with C = Base]’:
source_file.cpp:45:28:   required from here
source_file.cpp:37:39: error: no matches converting function ‘initialize’ to type ‘Derived::Initializer {aka void (class Derived::*)()}’
   Initializer initializer = &Derived::initialize<C, C::template SetterInterface<0>::Function>;
                                       ^
source_file.cpp:30:7: note: candidate is: template<class T, void (T::* F1)(unsigned int)> void Derived::initialize()
  void initialize()
       ^
source_file.cpp:37:15: warning: unused variable ‘initializer’ [-Wunused-variable]
   Initializer initializer = &Derived::initialize<C, C::template SetterInterface<0>::Function>;
               ^

        

    
                
λ
.NET NoSQL database for rapid development