
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Martin Bonner Sent: 13 February 2008 10:36 To: boost@lists.boost.org Subject: Re: [boost] Switch namespace
----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!)
LOL! How about 'case'? Oops no ;-)) Or perhaps 'namespace cases' might be a bit better? There is only one switch but multiple cases? Paul --- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow@hetp.u-net.com