Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mpark opened this issue Dec 13, 2013 · 1 comment
Closed

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

mpark opened this issue Dec 13, 2013 · 1 comment

Comments

@mpark
Copy link

mpark commented Dec 13, 2013

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.

@potswa
Copy link

potswa commented Dec 13, 2013

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants