Boost logo

Boost :

Subject: Re: [boost] [optional] Safe optional
From: Robert Ramey (ramey_at_[hidden])
Date: 2014-11-17 12:01:43

Andrzej Krzemienski wrote
> My idea is to provide another type wrapper, say safe_optional
> <T>
> , that
> would choose different tradeoffs: prefer "safety" to some flexibility
> and/or efficiency. It would probably be part of Boost.Optional library as
> the implementation can be reused - only the interface would be changed.
> One downside of this solution is that we would have two libraries for
> doing
> nearly the same thing, which could "scatter" the community. There is a
> value for standardizing certain things and making them universal.

Can't this concern be addressed by making this an addition to the optional
So that safe_optional<T> would be an wrapper around optional<T> with
extra error checking?

Robert Ramey

View this message in context:
Sent from the Boost - Dev mailing list archive at

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