Boost logo

Boost :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-07-05 16:37:58


> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Emil Dotchevski
> > Not to mention that the client can and will do it wrong.
>
> I don't want to make a huge deal out of this because
> ultimately I don't mind
> hiding the dynamic_cast in a function get_exception_info. But
> I am arguing
> that this abstraction is not necessary because the only
> implementation
> possible is through a dynamic_cast (at least I can't think of another
> possibility).

Well for some people the only way to fix a const correctness related
error is to remove the const. I can imagine people doing all sorts of
(wrong)casts. IMHO, I think the api should constrain that freedom seeing
as there *is* only one right way to do it!

Sohail


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