Boost logo

Boost :

Subject: Re: [boost] safe-bool CRTP class
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2011-05-28 15:36:53


On Sat, May 28, 2011 at 3:29 PM, Jeffrey Lee Hellrung, Jr.
<jeffrey.hellrung_at_[hidden]> wrote:
> On Sat, May 28, 2011 at 9:46 AM, Gottlob Frege <gottlobfrege_at_[hidden]>wrote:
>
>> On Sat, May 28, 2011 at 9:22 AM, Krzysztof Czainski <1czajnik_at_[hidden]>
>> wrote:
>>
> [...]
>
>> > The first question is: should it be a CRTP class, or should it be a
>> macro,
>> > or both perhaps?
>>
> [...]
>
>> I suspect that we should offer both versions.
>>
>
> What are the arguments for a CRTP solution over a macro solution?
>
> - Jeff

I hate MACROS.

ie for the usual reasons that people don't like MACRO solutions -
can't easily see what is really going on, harder to debug, etc.

Tony


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