|
From: Frank M. H. <fm...@us...> - 2007-03-06 18:18:36
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13063 Modified Files: last_value.hpp Log Message: tweaked no_slots_error exception. Index: last_value.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/last_value.hpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- last_value.hpp 5 Mar 2007 15:10:54 -0000 1.4 +++ last_value.hpp 6 Mar 2007 18:18:30 -0000 1.5 @@ -19,11 +19,10 @@ class expired_slot; // no_slots_error is thrown when we are unable to generate a return value // due to no slots being connected to the signal. - class no_slots_error: public std::runtime_error + class no_slots_error: public std::exception { public: - no_slots_error(const std::string &description): std::runtime_error(description) - {} + virtual const char* what() {return "boost::no_slots_error";} }; namespace last_value_detail { template<typename T> |