Replace throw with throw_exception (which doesn't ;-)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7876 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-10-07 22:15:10 +00:00
parent fbd9df3dbb
commit 453fe5d990
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-10-07 Angus Leeming <leeming@lyx.org>
* boost/any.hpp: change the throw to boost::throw_exception.
2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
* boost/test/detail/nullstream.hpp: new file

View File

@ -14,6 +14,7 @@
#include <typeinfo>
#include "boost/config.hpp"
#include "boost/throw_exception.hpp"
namespace boost
{
@ -171,7 +172,7 @@ namespace boost
{
const ValueType * result = any_cast<ValueType>(&operand);
if(!result)
throw bad_any_cast();
throw_exception(bad_any_cast());
return *result;
}