On Sat, 22 Mar 2003 17:39:06 +0000, Kevlin Henney
<[EMAIL PROTECTED]> 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.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to