Boost logo

Boost :

From: Jeff Garland (azswdude_at_[hidden])
Date: 2021-02-06 00:37:38


On Fri, Feb 5, 2021 at 10:50 AM Marshall Clow via Boost <
boost_at_[hidden]> wrote:

> On Feb 5, 2021, at 9:00 AM, John Maddock via Boost <boost_at_[hidden]>
> wrote:
> >
> >> I also noticed a few basic things, maybe you can say why that is:
> >> - Why are there explicit complex classes for FP types, why is this not
> implemented completely via template? The advantage is that built-ins can be
> used, on the other hand, a separate class must be written for each FP type
> - with the problems we are currently having.
> > This is all a question for the C++ committee, my speculation would be
> that they wished to restrict the scope of std::complex to float/double/long
> double.
>
> I refer you to https://wg21.link/complex.numbers p2, which states:
> The effect of instantiating the template complex for any type
> other than float, double, or long double is unspecified.
>
> — Marshall
>

I will note that there is a proposal that might alter this stance:

https://wg21.link/P1467R4


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk