C
Clay_Culver
I have this code:
typedef BraidedNode* (BraidedNode::*NodeGet)() const;
NodeGet test()
{
return BraidedNode::getNextID;
}
This code compiles under MSVC 7.1, but g++ (GCC 3.4.4) will not compile
it. Maybe I'm missing a subtle portion of the standard.... I know
that the above is at least partially correct (MSVC compiles it). Does
anyone know what I need to do to get this to compile?
info:
BraidedNode is a class
getNextID is a non-static member function of BraidedNode
BraidedNode::getNextID matches the NodeGet typedef
Anyone have an insights?
typedef BraidedNode* (BraidedNode::*NodeGet)() const;
NodeGet test()
{
return BraidedNode::getNextID;
}
This code compiles under MSVC 7.1, but g++ (GCC 3.4.4) will not compile
it. Maybe I'm missing a subtle portion of the standard.... I know
that the above is at least partially correct (MSVC compiles it). Does
anyone know what I need to do to get this to compile?
info:
BraidedNode is a class
getNextID is a non-static member function of BraidedNode
BraidedNode::getNextID matches the NodeGet typedef
Anyone have an insights?