Commit 6c4e9c60 by Peter Doerfler Committed by Paolo Carlini

hashtable (identity<>::operator(), [...]): Return by const ref.

2006-05-13  Peter Doerfler  <gcc@pdoerfler.com>

	* include/tr1/hashtable (identity<>::operator(),
	extract1st<>::operator()): Return by const ref.

From-SVN: r113737
parent 143145da
2006-05-13 Peter Doerfler <gcc@pdoerfler.com>
* include/tr1/hashtable (identity<>::operator(),
extract1st<>::operator()): Return by const ref.
2006-05-10 Steve Ellcey <sje@cup.hp.com> 2006-05-10 Steve Ellcey <sje@cup.hp.com>
* testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit):
......
...@@ -404,7 +404,7 @@ namespace Internal ...@@ -404,7 +404,7 @@ namespace Internal
template<typename T> template<typename T>
struct identity struct identity
{ {
T const T&
operator()(const T& t) const operator()(const T& t) const
{ return t; } { return t; }
}; };
...@@ -412,7 +412,7 @@ namespace Internal ...@@ -412,7 +412,7 @@ namespace Internal
template<typename Pair> template<typename Pair>
struct extract1st struct extract1st
{ {
typename Pair::first_type const typename Pair::first_type&
operator()(const Pair& p) const operator()(const Pair& p) const
{ return p.first; } { return p.first; }
}; };
......
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