Subject: Re: [boost] [optional] Suggestion for adding an optional_number class
From: degski (degski_at_[hidden])
Date: 2017-07-23 04:09:09
On 21 July 2017 at 10:47, Viktor Sehr via Boost <boost_at_[hidden]>
> I'd like to make a suggestion for adding an optional class for number
> types, called optional_number, where the max value of the number type is
> utilized as the uninitalized value.
What problem are you trying to solve?
> - Can be assigned to any value except the max value
- Throws if assigned the numeric_limits<T>::max
Seems to me the poison is worse than the disease.
-- "*Ihre sogenannte Religion wirkt bloÃ wie ein Opiat reizend, betÃ¤ubend, Schmerzen aus SchwÃ¤che stillend.*" - Novalis 1798
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk