Boost logo

Boost :

Subject: Re: [boost] Are there any some utilities that helps to show where a exception is from?
From: Alp Mestan (alp.boost-dev_at_[hidden])
Date: 2008-10-22 02:35:17


On 10/22/08, Eric Niebler <eric_at_[hidden]> wrote:
>
>
> When I try this (on trunk) I get:
>
> 1>.\main.cpp(93) : error C2664: 'boost::diagnostic_information' : cannot
> convert parameter 1 from 'my_exception' to 'const boost::exception &'
> 1> Reason: cannot convert from 'my_exception' to 'const
> boost::exception'
> 1> No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
>
> ???

Maybe inheriting from boost::exception instead of std::exception would solve
that ?

-- 
Alp Mestan
--- http://blog.mestan.fr/
--- http://alp.developpez.com/
--- In charge of the Qt, Algorithms and Artificial Intelligence sections on
Developpez

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk