Boost logo

Boost :

From: Gerhard Wesp (gwesp_at_[hidden])
Date: 2006-05-26 05:56:38


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.

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