Skip to content

Possible issues with deduction guides from p1518r2 #501

@jbcoe

Description

@jbcoe

Does https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p1518r2.html somehow also apply to indirect?

I.e. should it be:

- constexpr indirect(allocator_arg_t, const Allocator& a, const indirect& other);
+ constexpr indirect(allocator_arg_t, const type_identity_t<Allocator>& a, const indirect& other);

- constexpr indirect(allocator_arg_t, const Allocator& a, indirect&& other);
+ constexpr indirect(allocator_arg_t, const type_identity_t<Allocator>& a, indirect&& other);

I am not sure, but I got reminded of P1518 and at least wanted to mention it.

Possibly related: microsoft/STL#4060

We're currently consistent with tuple: https://eel.is/c++draft/tuple.tuple which might be the right way to be.

Taken from conversation with @Ukilele on another issue #497

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions