Boost logo

Boost :

From: Eric Woodruff (Eric.Woodruff_at_[hidden])
Date: 2002-08-16 11:57:15

Of course, the user would have to do this if they needed specific types with
the backwards compatible method:

catch (std::exception* exception) {
    std::cout << "someone didn't use boost::throw_exception!" << std::endl;

    if (std::invalid_argument* invalid_argument =
dynamic_cast<std::invalid_argument*> (exception) {
        std::cout << "found an invalid argument" << std::endl;

----- Original Message -----
From: Eric Woodruff
Newsgroups: gmane.comp.lib.boost.devel
Sent: Friday, 2002:August:16 12:47 PM
Subject: Theads & Exceptions - Dual Paradigms?

Since we have an opportunity to catch the transportable_exception and an
std::exception&, we can provide support for both paradigms. This means that
a thread function that doesn't properly use boost::throw_exception will have
to have its exceptions thrown as pointers (whenever a reference is specified
in the exception list).

Does everyone welcome this additional support? It will require good

Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at