
28 May
2011
28 May
'11
2:49 p.m.
On 28 May 2011, at 14:22, Krzysztof Czainski wrote:
Thank you all for such large input ;-)
So the way I see it, most of us agree it would be nice to see one official safe-bool implementation tool in boost.
The first question is: should it be a CRTP class, or should it be a macro, or both perhaps?
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". Chris