Boost logo

Boost :

From: Maarten Kronenburg (M.Kronenburg_at_[hidden])
Date: 2006-05-26 07:26:00


Gerhard,
Thanks for your comments.
Every unsigned integer is an integer,
and every modular integer is an integer.
So therefore in my opinion public inheritance
can be used.
Also I think there is no other way of defining
an unsigned_integer.
Regards, Maarten.

"Gerhard Wesp" <gwesp_at_[hidden]> wrote in message
news:20060526095637.GC7522_at_google.com...
> On Thu, May 25, 2006 at 04:41:32PM +0200, Maarten Kronenburg wrote:
> > Users can implement an unsigned_integer by deriving from
> > integer, but this will not give any performance gain.
>
> This would violate Item 32 in Effective C++, 3rd ed. by Scott Meyers:
> Make sure public inheritance models "is-a". I suggest deriving from
> integer be disallowed in the TR2 proposal.
>
> Regards
> -Gerhard
> --
> Gerhard Wesp
> ZRH office voice: +41 (0)44 668 1878
> ZRH office fax: +41 (0)44 200 1818
> For the rest I claim that raw pointers must be abolished.
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>


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