|
Boost Users : |
Subject: Re: [Boost-users] [Exception] Expected<T> C++03
From: Szymon Gatner (szymon.gatner_at_[hidden])
Date: 2012-12-12 11:49:34
2012/12/12 Sebastian Redl <sebastian.redl_at_[hidden]>:
>
> By using compiler-specific knowledge of how the exception system works.
> Or the same way as boost::copy_exception, like GCC's implementation. IOW, it does throw.
>
Thanks for clarification. This means that Andrei's version might in
practice not be faster at all as non-exceptional path might not be so
non-exceptional afterall. Still, it is perfect thing for async
callback-based APIs when throwing penalty is OK and client code wants
to handle computation exception.
Cheers,
Simon
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