Boost logo

Boost :

Subject: Re: [boost] [outcome] Possible extensions/changes to std::experimental::expected
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2017-05-26 13:16:01

> Outcome uses a different mitigation by restricting the possible types of
> E, rendering the above case very unlikely (although not impossible,
> since outcome<error_code> is legal).

A static assert should prevent construction with a T convertible to or
from an error_code_extended or a std::exception_ptr. As
error_code_extended explicitly constructs from error_code,
outcome<error_code> should not compile.


ned Productions Limited Consulting

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