This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] policy based associated containers
- From: Ulrich Weigand <uweigand at de dot ibm dot com>
- To: pcarlini at suse dot de (Paolo Carlini)
- Cc: uweigand at de dot ibm dot com (Ulrich Weigand), bkoz at redhat dot com (Benjamin Kosnik), libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 30 Jun 2005 22:41:33 +0200 (CEST)
- Subject: Re: [v3] policy based associated containers
Hi Paolo,
> P.S. Actually, you need a typename in front of the class name and would
> be nice if you could reformat everything to 80 columns (see also the
> previous definition)
Like so? Bootstrapped/regtested on s390x-ibm-linux.
Bye,
Ulrich
ChangeLog:
* include/ext/pb_assoc/detail/hash_fn/mask_based_range_hashing.hpp
(PB_ASSOC_CLASS_C_DEC::s_highest_bit_1): Cast constant 1 to target
type before shifting.
Index: libstdc++-v3/include/ext/pb_assoc/detail/hash_fn/mask_based_range_hashing.hpp
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/ext/pb_assoc/detail/hash_fn/mask_based_range_hashing.hpp,v
retrieving revision 1.1
diff -c -p -r1.1 mask_based_range_hashing.hpp
*** libstdc++-v3/include/ext/pb_assoc/detail/hash_fn/mask_based_range_hashing.hpp 27 Jun 2005 15:30:36 -0000 1.1
--- libstdc++-v3/include/ext/pb_assoc/detail/hash_fn/mask_based_range_hashing.hpp 30 Jun 2005 20:37:01 -0000
*************** namespace pb_assoc
*** 88,95 ****
sizeof(typename PB_ASSOC_CLASS_C_DEC::size_type) << 3;
PB_ASSOC_CLASS_T_DEC
! const typename PB_ASSOC_CLASS_C_DEC::size_type PB_ASSOC_CLASS_C_DEC::s_highest_bit_1 =
! 1 << (s_num_bits_in_size_type - 1);
PB_ASSOC_CLASS_T_DEC
void
--- 88,97 ----
sizeof(typename PB_ASSOC_CLASS_C_DEC::size_type) << 3;
PB_ASSOC_CLASS_T_DEC
! const typename PB_ASSOC_CLASS_C_DEC::size_type
! PB_ASSOC_CLASS_C_DEC::s_highest_bit_1 =
! (typename PB_ASSOC_CLASS_C_DEC::size_type) 1
! << (s_num_bits_in_size_type - 1);
PB_ASSOC_CLASS_T_DEC
void
--
Dr. Ulrich Weigand
Linux on zSeries Development
Ulrich.Weigand@de.ibm.com