Subject: Re: [boost] safe-bool CRTP class
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2011-05-28 11:03:11
On Sat, May 28, 2011 at 10:49 AM, Christopher Jefferson <
> I think we should go macro.
> I wonder if the macro should take a parameter, just to give some way of
> getting a unique name. We could of course use some random integer / line
> number / file name, but such things are likely to be fragile and code could
> easily end up breaking the "one definition rule".
We shouldn't need to do this or use any kind of unique ID. ODR isn't a
problem here, just have the macro create a nested type behind the scenes
with a complicated name and use the pointer-to-member trick with that.
-- -Matt Calabrese
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk