BOOST_ERROR( message )

BOOST_ERROR tool behave the same way as BOOST_CHECK_MESSAGE( false, message ). This tool is used for an unconditional error message logging.

The only tool's parameter is an error message to log.

Example: test.cpp

int test_main( int, char* [] ) {
     BOOST_ERROR( "Nothing to test" );

    return 0;
}

Output:

test.cpp(3) : error in test_main: Nothing to test

See Also

BOOST_CHECK_MESSAGE