Hi,

Does boost have some sort of null_ptr class that allows you to do portable NULL comparisons? For example, the following isn't portable:

char* foo = 0;
if( foo != 0 )
{
}

But this is portable:

char* foo = reinterpret_cast<char*>( 0 );
if( foo != reinterpret_cast<char*>( 0 ) )
{
}

You could easily create a null_ptr class with a few global template operators to make this easy, so you could do this:

char* foo = boost::null_ptr;
if( foo != boost::null_ptr )
{
}

Is there such a thing? Thanks.