Is it OK to cast a double array to a struct made of doubles?
struct A { double x; double y; double z; }; int main (int argc , char ** argv) { do
std::complex implementation of msvc use the array solution, and llvm libc++ use the former form.
I think, just check the implementation of the std::complex of your libc++, and use the same solution with it.