Boost logo

Boost :

Subject: Re: [boost] [optional] Safe optional
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2014-11-24 13:17:56

On Thu, Nov 20, 2014 at 5:00 AM, Andrzej Krzemienski <akrzemi1_at_[hidden]> wrote:

> the docs also recommends NOT to use optional<T> to signal a potential
> error/difficulty in computing T:
> .
> This is the choice made for optional<T>. The authors of expected<T, E> may
> want to choose a different model.

expected<T,E> is almost surely written for exactly that purpose.


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