
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@google.com> wrote in message news:20060526095637.GC7522@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