|
Boost : |
From: Martin Bonner (Martin.Bonner_at_[hidden])
Date: 2008-02-13 05:35:32
----Original Message----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of Dizzy Sent: 13
February 2008 10:03 To: boost_at_[hidden]
Subject: Re: [boost] Switch namespace
> On Wednesday 13 February 2008 11:53:40 Martin Bonner wrote:
>> From: Steven Watanabe
>>
>>> I'm not sure what namespace to use for switch.
>>>
>>> Since there will be more than just the single function template,
>>> switch_, I don't really want to put it directly in namespace boost.
>>
>> I agree.
>>
>>> adding an 's' to make namespace switches sounds a little odd.
>>> Any suggestions?
>>
>> boost::switch ? My understanding is that some compilers have
>> problems with with boost::switch_::switch_, but
>> boost::switch::switch_ ought to be fine.
>
> But "switch" is a keyword so you can't use it for namespace names.
[Smacks hand against forehead] D'oh!
Of course. (I can only hope that is the stupidest thing I say this
month - I /really/ don't want to say something stupider than that!)
How about:
boost::control_flow
boost::switch_case
?
(I don't much like either of those, but maybe they'll inspire somebody
else).
-- Martin Bonner Senior Software Engineer/Team Leader PI SHURLOK LTD Telephone: +44 1223 441434 / 203894 (direct) Fax: +44 1223 203999 Email: martin.bonner_at_[hidden] www.pi-shurlok.com disclaimer
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk