Boost logo

Boost :

Subject: Re: [boost] [Core] BOOST_TRY/BOOST_CATCH
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2016-02-21 19:05:49

On 2016-02-21 23:15, Chris Glover wrote:


> This is starting to look a little nasty to me so I'm wondering if anyone
> has any thoughts on this? Should I stop worrying about it and just use the
> #ifdef?

I think so, yes. I would just use an #ifdef.

The problem with these macros (for me, at least) is that it's not clear
what the actual error handling is supposed to be in case if exceptions
are disabled. I mean, if you want the code to support the "no
exceptions" case, you should design the interfaces with a different
method of communicating failures, and simply removing try/catch/throw
does not cut it.

Boost list run by bdawes at, gregod at, cpdaniel at, john at