universal icon indicating copy to clipboard operation
universal copied to clipboard

Clang is enforcing std::complex<> only accepting native floating-point types, find a solution

Open Ravenwater opened this issue 6 months ago • 3 comments

First AppleClang and now regular Clang are enforcing that std::complex<> is undefined when the template parameters are not native floating-point types.

This will kill all complex<> use cases of Universal floating-point types, of which there are many:

  • cfloat
  • areal
  • dd
  • qd
  • efloat
  • posit
  • takum
  • lns
  • dbns
  • dfloat
  • fixpnt
  • deci

We need to find a solution to this problem that side-steps this std::complex<> library specification.

Ravenwater avatar Aug 17 '24 14:08 Ravenwater