Boost logo

Boost :

Subject: [boost] [Boost.Breakable] Any interest in a Boost Breakable library?
From: Pierre Morcello (pmorcell-cppfrance_at_[hidden])
Date: 2009-09-06 08:37:19


Hello,

I propose a set of macros that allow to break anywhere. Example of use of the main macro :

// do something...
BOOST_BREAKABLE
{
    if (test1)
    {
          break;
    }
    if (test2)

    std::cout<<"this is never reached if test1==true or test2==true. "<<std::endl;
    // do something...
}
// here the program continues ...

Is there any interest in such a library?

Best regards,

Pierre Morcello


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk