Subject: Re: [boost] Interest in breakable labeled scope emulation?
From: Brian Ravnsgaard Riis (brian_at_[hidden])
Date: 2013-01-13 14:37:44
Den Sun, 13 Jan 2013 20:30:14 +0100 skrev Vicente J. Botet Escriba
> Of course in order to be really structired the jumping to the underlying
> label should be forbiden (by the compiler), but I don't think that a
> preprocessor solution could take care of this. So the following not
> desired and not structured code could compile even if we would like an
> compile error.
> // ...
> // 
> BOOST_BREAK(L); // go to 
So, the underlying idea is to get something like "break" and "continue" to
work inside any "named" block, not just loops? If so (as you demonstrate
above) I'm fairly certain a correct solution cannot be implemented using
just the preprocessor.