[std-interval] Mathematical relations and default initialization

Lawrence Crowl lawrence.crowl at gmail.com
Mon Sep 25 20:38:39 PDT 2006


On 9/25/06, Lawrence Crowl <lawrence.crowl at gmail.com> wrote:
> On the matter of default constructors.
> >>6- see below (something a la "singular iterator")
>
> I didn't see a description of this approach, but it seems to like
> builtin types, i.e.  completely uninitialized memory, thus yielding
> an undefined state for the variable.  This is the fastest solution.

Please note that compilers already have algorithms to detect and
report on variables of basic types that are used before they are defined.
Perhaps rather than trying to pick the 'right' default value, the
standard would be better off with 6 and a QoI note asking for those
algorithms to be applied to intervals.

-- 
Lawrence Crowl


More information about the Std-interval mailing list