Program is giving me trouble in Bloodshed DEV C++ but not in Visual Studio C++:
I created a custom String class and one of the methods is String::operator>.
In a friend class I want to have this function pointer:
int ( String::*compare_op )( const String ) const;
compare_op = String::operator>;
but it gives me the error
187 C:\Dev-Cpp\main.cpp invalid use of non-static member function `int String::operator>(String) const'
187 C:\Dev-Cpp\main.cpp cannot convert `int (String::)(String) const' to `int (String::*)(String) const' in assignment