
19 Nov
2013
19 Nov
'13
9:38 p.m.
On 20/11/2013 03:13, Quoth Mathias Gaunard:
template
struct or_ { static constexpr bool value = !noexcept( allow_expansion((T::value ? throw : 0)...) ); }; An obvious problem with this is that it doesn't compile if exceptions are disabled. And I think being able to use meta-programming without exceptions is an important property to have.
If you look at the followup, it doesn't use noexcept any more.