|
Boost : |
Subject: Re: [boost] [context] Providing template class enumerate in context.hpp
From: Julien Nitard (julien.nitard_at_[hidden])
Date: 2012-03-04 09:03:14
Hi again,
you referring to the example 'enumerate'?! it was intendet to demonstrate
> the usage of boost.context. maybe I'll provide an separate lib with the
> 'enumerate' stuff if appropriate.
>
I think I have found a bug in the sample. In the destructor, I get a
"calling virtual function exception" for Enumerator that are never started.
The following code seems to work:
> if (started_)
> if ( do_unwind_ && ! ctx_.is_complete() )
> ctx_.unwind_stack();
>
Julien
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk