|
Boost Users : |
Subject: [Boost-users] boost::exception - leaking error_info
From: Bruce Laing (bruce.laing_at_[hidden])
Date: 2009-02-20 18:00:30
This program seems to be leaking boost::exception::error_info objects.
Is there something missing here?
- Bruce
typedef boost::error_info< struct tag_my_error, std::string >
some_error_info;
struct an_exception : public boost::exception, public std::exception {};
void throw_func()
{
BOOST_THROW_EXCEPTION
(
an_exception()
// no leak if next line is commented out.
<< some_error_info( std::string( "error message" ) )
);
}
.
.
.
BOOST_AUTO_TEST_CASE( test_exceptions )
{
try
{
throw_func()
}
catch( an_exception& )
{
}
}
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net