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&  )
      {
      }
  }