Boost logo

Boost :

Subject: Re: [boost] [xint] Boost.Move vs Copy-on-Write timings
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2010-05-04 11:49:43

Hash: SHA1

On 05/04/2010 07:22 AM, Stewart, Robert wrote:

>> That might indeed be a better design. And if I do adopt the CRTP
>> design, it might be the only way, since if I understand it
>> correctly, there won't be a non-template base class that's shared
>> by all of the integer types anymore.
> Using CRTP doesn't preclude a non-templated base class. It would be
> the base of the class template with its derivate as a parameterizing
> type.

If I understand it correctly, then yes, I could use a non-templated base
class, but that base class wouldn't be usable the way that base_integer
is used now, for the parameters to the functions that implement the math
operations, so that those functions could be shared between all three
types. Or am I missing something?
- --
Chad Nelson
Oak Circle Software, Inc.
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


Boost list run by bdawes at, gregod at, cpdaniel at, john at