Skip to content

std::complex reflect and __cpp_lib_tuple_like 202311L aka P2819R2 #43

Description

@piotrrak

Hello

Just FYI, since I looked at build issues with recent clang/libc++

The check if std::complex is tuple-like is something that popped up.

This test for libc++ is bit unfortunate since it implements tuple-like protocol for std::complex
P2819R2 but not all the other things tuple-like protocol things that is are dependency (__cpp_lib_tuple_like 202207L).
Authors of paper did choose update __cpp_lib_tuple_like and libc++ can't claim it since it doesn't have things required for 202207L.
libc++ chooses to implement it, implying that only version check of libc++ can fix it.

It'll also fail with g++, didn't test it but there's libstdc++: implement tuple protocol for std::complex (P2819R2)

I don't have opinion if it should be removed or '#ifdef'ed', but since it's something that will come to standard, maybe there is no point in testing it at all.

Cheers,
/P

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions