2008-09-21 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_algo.h (minmax(initializer_list<>): Use make_pair,
consistently with the other overload for initializer_list.
From-SVN: r140524
+2008-09-21 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * include/bits/stl_algo.h (minmax(initializer_list<>): Use make_pair,
+ consistently with the other overload for initializer_list.
+
2008-09-19 Johannes Singler <singler@ira.uka.de>
PR libstdc++/37470
{
pair<const _Tp*, const _Tp*> __p =
std::minmax_element(__l.begin(), __l.end());
- return std::pair<_Tp, _Tp>(*__p.first, *__p.second);
+ return std::make_pair(*__p.first, *__p.second);
}
template<typename _Tp, typename _Compare>