i was just wondering why can't i point something to void. without getting any errors
like for example
class cs_PureFunction
{
public:
virtual void DoSomething() = 0;
virtual bool CheckThings() = 0;
};
class cs_EnableOverrideAction: public cs_PureFunction
{
public:
virtual void DoSomething() { puts("Test123"); }
virtual bool CheckThings()
{
if(cin.get())
return 1;
return 0;
}
};
int main(int argc, TCHAR **argv[], ...)
{
cs_EnableOverrideAction* enableit;
return enableit->CheckThings();
}
i know if i did
EnableOverrideAction enableit
i wouldn't get a error and i know that.
But this weird error
- enableit 0xcccccccc cs_EnableOverrideAction *
- cs_PureFunction {...} cs_PureFunction
__vfptr CXX0030: Error: expression cannot be evaluated
i usually only get it if im declaring a integer with the -> so how come i cant call a void or Boolean