This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]