Skip to content

libc++ <memory> header fails with uses_allocator_construction_args case. #154174

@edfvogel

Description

@edfvogel

The following test compiles with clang++, but will fail with -stdlib=libc++ is used.

#include <memory>

using P00 = std::pair<const int, const char>;
using A00 = std::allocator<P00>;
constexpr P00 p00(1, 'a');
constexpr A00 a00;
constexpr auto r00
  = std::uses_allocator_construction_args<P00, A00, const int, const char>(
    a00, std::move(p00));

Again, not an important issue, just wanted to make you aware of it.

Thank you,

Ed Vogel

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateResolved as duplicatelibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions