re PR libstdc++/37144 (A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp)

2008-12-12  H.J. Lu  <hongjiu.lu@intel.com>

	PR libstdc++/37144
	* testsuite/util/regression/trait/assoc/type_trait.hpp
	(regression_test_type_traits): Add const to pair_type_rebind.

From-SVN: r142736
This commit is contained in:
H.J. Lu 2008-12-13 01:40:15 +00:00 committed by H.J. Lu
parent b0c2c850bd
commit 81ff169c9e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-12-12 H.J. Lu <hongjiu.lu@intel.com>
PR libstdc++/37144
* testsuite/util/regression/trait/assoc/type_trait.hpp
(regression_test_type_traits): Add const to pair_type_rebind.
2008-12-12 Benjamin Kosnik <bkoz@redhat.com>
* src/atomic.cc: Correct guards to match mutex.cc.

View File

@ -87,7 +87,7 @@ namespace __gnu_pbds
typedef typename basic_type_rebind::const_reference basic_type_const_reference;
typedef typename cntnr::allocator_type::template rebind<std::pair<basic_type, basic_type> >::other pair_type_rebind;
typedef typename cntnr::allocator_type::template rebind<std::pair<const basic_type, basic_type> >::other pair_type_rebind;
typedef typename pair_type_rebind::const_reference pair_type_const_reference;
template<typename Gen>