Boost logo

Boost :

From: John Eddy (johneddy_at_[hidden])
Date: 2005-02-03 15:07:36

I noticed a potential hazard in exceptions.cpp of the thread library.
The method:

const char* thread_exception::message() const

returns the c_str of a string with local scope. This is a problem at
least in VC 7 .NET 2003. The error can be exposed by the following code.

    throw boost::lock_error(1);
catch(boost::lock_error& e)
    cerr << e.message();


Boost list run by bdawes at, gregod at, cpdaniel at, john at