Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Address-of nullchecking

Name: Anonymous 2008-10-24 3:39

Impl& impl;

That little motherfucking line of code in a header is pissing me off.  Why?  Because it eventually causes an access violation at the line:

if(!impl.mProcessTimer.checkExpirationAndReset(SECS_BETWEEN_PROCESS))

And I have no idea how to check for nulls in an address-of situation.  Regular pointers?  Sure, but whenever I try if(!impl) or some other more convoluted variation of that, MSVC screams about invalid operators. 

Halp plz.

Name: Anonymous 2008-10-24 19:50

>>9
You would not say that if you were programming in JAVA using Eclipse.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List