prog.cpp: In function 'int main()':
prog.cpp:24:37: error: no matching function for call to 'ReceiveFuncPtr(<unresolved overloaded function type>)'
ReceiveFuncPtr(&MySet<int>::insert); // OK
^
prog.cpp:24:37: note: candidate is:
prog.cpp:15:3: note: template<class Return, class T> T ReceiveFuncPtr(Return (T::*)(const int&))
T ReceiveFuncPtr (Return (T::*Method)(const int&))
^
prog.cpp:15:3: note: template argument deduction/substitution failed:
prog.cpp:24:37: note: mismatched types 'const int&' and 'std::initializer_list<int>'
ReceiveFuncPtr(&MySet<int>::insert); // OK
^
prog.cpp:24:37: note: mismatched types 'const int&' and 'int&&'
prog.cpp:24:37: note: couldn't deduce template parameter 'Return'