diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 342a71a18a12..cbd081d364f7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2006-05-13 Peter Doerfler + + * include/tr1/hashtable (identity<>::operator(), + extract1st<>::operator()): Return by const ref. + 2006-05-10 Steve Ellcey * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): diff --git a/libstdc++-v3/include/tr1/hashtable b/libstdc++-v3/include/tr1/hashtable index ad34a9c9a595..9455ed6405f1 100644 --- a/libstdc++-v3/include/tr1/hashtable +++ b/libstdc++-v3/include/tr1/hashtable @@ -404,7 +404,7 @@ namespace Internal template struct identity { - T + const T& operator()(const T& t) const { return t; } }; @@ -412,7 +412,7 @@ namespace Internal template struct extract1st { - typename Pair::first_type + const typename Pair::first_type& operator()(const Pair& p) const { return p.first; } };