Name: Anonymous 2010-09-07 11:16
C++ is C done wrong. We must purge C++ from this world.
Who is with me?
Who is with me?
class shit
{
class inner_shit
{
// A fucntion pointer
typedef void (inner_shit::*func)(int a);
func f;
}
std::vector<inner_shit *> vec;
void shit_func()
{
// I'd like to actually call the fucking "f" function member of an "inner_shit" here...
}
};
(this->*vec[5]->f)(5);this->* or the parentheses around the whole first part -- compiler error.