Skip to content

Non-portable test for SFINAE-friendly std::to_addressΒ #170768

@jwakely

Description

@jwakely

static_assert(!is_valid_expansion<TestToAddressCall, int>::value);

This test was added by #65177 which claims to be implementing LWG3545, but that issue only said that pointer_traits should be SFINAE-friendly. It didn't require that to_address should be SFINAE-friendly.

There is a separate (and unresolved) issue about making to_address SFINAE-friendly: LWG4058.

Until LWG4058 is resolved, this test is not portable and relies on a non-standard libc++ extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.test-suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions