$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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]>
wrote:
> 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
>
<snip>
- Throws if assigned the numeric_limits<T>::max
>
Seems to me the poison is worse than the disease.
degski
-- "*Ihre sogenannte Religion wirkt bloà wie ein Opiat reizend, betäubend, Schmerzen aus Schwäche stillend.*" - Novalis 1798