Boost logo

Boost :

From: Oliver.Kowalke_at_[hidden]
Date: 2006-06-28 00:17:48


Hello,
in the current implementation system_error::what() returns something
like

runtime_error::what() + " : " + system_message();

which results in some ugly ' : no such device' format if I only want a
system specific error description returned.
I suggest that system_error gets two ctors:

system_error( error_code const&); // what() returns only system specific
error description provided by system_message

system_error( error_code const&, std::string const& desc) // what()
returns desc which could be formated by the user as needed

const char * system_error::what() const throw()
 { return runtime_error::what(); }

regards,
Oliver


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