
25 May
2017
25 May
'17
9:34 p.m.
Andrzej Krzemienski wrote:
Instead, rewrite observer functions like this:
bool has_value() const { if (BOOST_UNLIKELY(_is_in_empty_state())) __builtin_unreachable();
Please no. This is horrible. Actually it's doubly horrible; merely horrible would be putting the above in value(). In an observer function... it's just evil.