diff options
| -rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
| -rw-r--r-- | libstdc++-v3/include/tr1/hashtable | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 342a71a..cbd081d 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +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> * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): diff --git a/libstdc++-v3/include/tr1/hashtable b/libstdc++-v3/include/tr1/hashtable index ad34a9c..9455ed6 100644 --- a/libstdc++-v3/include/tr1/hashtable +++ b/libstdc++-v3/include/tr1/hashtable @@ -404,7 +404,7 @@ namespace Internal template<typename T> struct identity { - T + const T& operator()(const T& t) const { return t; } }; @@ -412,7 +412,7 @@ namespace Internal template<typename Pair> struct extract1st { - typename Pair::first_type + const typename Pair::first_type& operator()(const Pair& p) const { return p.first; } }; |
