Commit aa4652fa by Paolo Carlini Committed by Paolo Carlini

stl_algo.h (minmax(initializer_list<>): Use make_pair, consistently with the…

stl_algo.h (minmax(initializer_list<>): Use make_pair, consistently with the other overload for initializer_list.

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
parent 5abf3860
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
......
......@@ -4121,7 +4121,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
{
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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment