Hello,
I have an error when compiling this little program:
--------------
class CReflectable
{
};
typedef int(CReflectable::* TGetSInt32) () const;
class A : public CReflectable
{
int getW() const { return 1; }
int getW(bool bTestActive) const { return 0; }
};
main()
{
TGetSInt32 p;
p = (TGetSInt32) &A::getW;
}
--------------
The error is:
foo.cpp: In function 'int main()':
foo.cpp:17: error: address of overloaded function with no contextual
type information
How to resolve this issue? (except than renaming the getW(bool)
function)
_______________________________________________
help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus