Closed
Description
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 commentedon Dec 13, 2013
It appears to have been substituted unintentionally in 59d041e along with the new
<type_traits>
aliases.