
----Original Message---- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Dizzy Sent: 13 February 2008 10:03 To: boost@lists.boost.org 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@pi-shurlok.com www.pi-shurlok.com disclaimer