From: Maarten Kronenburg (M.Kronenburg_at_[hidden])
Date: 2006-05-26 07:26:00
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
"Gerhard Wesp" <gwesp_at_[hidden]> wrote in message
> 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.
> 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:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk