
12 Dec
2012
12 Dec
'12
4:49 p.m.
2012/12/12 Sebastian Redl
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