Getting error C3352 (specified function doesn't match delegate type), even though function seems to match delegate type
问题 Here is the exact error message on compilation: error C3352: 'double MyNamespace::MyRefClass::MyFunction(const std::vector<_Ty> &,std::vector<_Ty> &,void *)' : the specified function does not match the delegate type 'double (const std::vector<_Ty> &,std::vector<_Ty> &,void *)' MyFunction is a private function in the reference class MyRefClass The quoted error shows up when I try to create an instance of the private delegate MyDelegate , declared in the same reference class, with the code: