How to properly invoke a function object within a class template's member function? Visual Studio Compiler Error C2440 is being generated
问题 This is a follow up to this question found here! Now, that I'm able to instantiate the object. I'm now getting a Visual Studio C2440 Compiler Error... In my original code before it was templated I had a set of member functions that worked on the std::function<double(double)> member object that looked like this: struct SomeStruct { double a_; double b_; SomeStruct(double a, double b) : a_{a}, b_{b} {} }; class SomeClass { private: SomeStruct fields_; size_t n_; std::function<double(double)>