Is it possible to do a check for null without doing .get() == 0 ? In MSVC's std::tr1::shared_ptr for example there is a cast operator as part of the class that allows writing if (mySharedPtr) ... Will this work in gcc or will I need to modify my code when porting?