Boost logo

Boost :

From: Jens Seidel (jensseidel_at_[hidden])
Date: 2007-11-05 15:39:39


On Mon, Nov 05, 2007 at 02:47:15PM -0500, Boris Gubenko wrote:
> Forgot VMS:
>
> #if defined(__hpux)
> BOOST_CHECK( *(ec.message().c_str()) == 0 );
> #elif defined(__osf__)
> BOOST_CHECK( ec.message().c_str() == "Error -1 occurred." );
> #elif defined(__vms)
> BOOST_CHECK( ec.message().c_str() == "error -1" );

Are the last two tests OK? Two const char* pointer are compared by
address!?

> #else
> BOOST_CHECK( ec.message().substr( 0, 13) == "Unknown error" );
> #endif

Jens


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk