Skip to content

std::tuple_element_t<> used without being defined #247

Closed
@mpark

Description

@mpark

In the current working draft, in section 20.3.4.

template<size_t I, class T1, class T2>
constexpr tuple_element_t<I, std::pair<T1, T2>> &get(pair<T1, T2>&) noexcept;

The return type should be:

template<size_t I, class T1, class T2>
constexpr typename tuple_element<I, std::pair<T1, T2>>::type &get(pair<T1, T2>&) noexcept;

Unless std::tuple_element_t<> will be added similar to the utilities in the <type_traits> header, in which case the definition should be added.

Activity

potswa

potswa commented on Dec 13, 2013

@potswa

It appears to have been substituted unintentionally in 59d041e along with the new <type_traits> aliases.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @potswa@mpark

        Issue actions

          std::tuple_element_t<> used without being defined · Issue #247 · cplusplus/draft