Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2003-03-22 13:43:19


On Sat, 22 Mar 2003 17:39:06 +0000, Kevlin Henney
<kevlin_at_[hidden]> wrote:

>Not necessarily. It would be reasonable to fold up the inheritance
>again, and simply provide a two argument constructor and a concrete
>implementation:
>
> class bad_lexical_cast : public std::bad_cast
> {
> public:
> ...
> virtual const char *what() throw()
                                           ^
Do not forget const here! -------|

>[...]
>(in case anyone had decided to throw bad_lexical_cast in their own
>code)

Aargh! :-)

Genny.


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