Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost 1.47 and exception_ptr
From: Travis Gockel (travis_at_[hidden])
Date: 2011-10-28 23:59:38


D'oh! It seems like the simplest of things are the most difficult to find.
Thanks ;-)

On Fri, Oct 28, 2011 at 6:18 PM, Emil Dotchevski
<emildotchevski_at_[hidden]>wrote:

> On Fri, Oct 28, 2011 at 11:02 AM, Travis Gockel <travis_at_[hidden]>
> wrote:
> > I'm working on upgrading from Boost 1.46.1 to 1.47 and having one tiny
> > little problem with exception_ptr. Currently, some of my systems keep an
> > exception_ptr around to denote if they have a "current exception" or not.
> > At times, we need to "clear" the current exception (it was resolved or
> > whatever), which we used to do by calling ex->reset(). However, as of
> 1.47,
> > excecption_ptr is no longer just a shared_ptr, so reset() has gone away.
> > What is the new preferred way of getting this old functionality? I
> can't
> > seem to find the way in the source.
>
> The official documentation for boost::exception_ptr is at
> www.boost.org/doc/libs/release/libs/exception/doc/exception_ptr.html.
> Essentially, boost::exception_ptr is default-constructable, so you can
> do ex=boost::exception_ptr().
>
> Emil Dotchevski
> Reverge Studios, Inc.
> http://www.revergestudios.com/reblog/index.php?n=ReCode
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Travis Gockel
Boost Ninja, SolidFire


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net