On Fri, Feb 5, 2021 at 10:50 AM Marshall Clow via Boost < boost@lists.boost.org> wrote:
On Feb 5, 2021, at 9:00 AM, John Maddock via Boost
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
This is all a question for the C++ committee, my speculation would be
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. 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