bitset patch

Levente Farkas lfarkas@mindmaker.hu
Wed Nov 1 02:36:00 GMT 2000


hi,
I turn back to this bug, so here is the patch:
2000-11-01  Farkas Levente  <lfarkas@mindmaker.hu>

	* include/bits/std_bitset.h (_M_do_find_first): Define as inline
	function, since this function is fully specialized and in header
	file. This function should have to be a __STL_TEMPLATE_NULL but
        there is a gcc bug, so I put it into a comment.
	(_M_do_find_next): Same.

 -- Levente                        http://petition.eurolinux.org/index_html
 "The only thing worse than not knowing the truth is
  ruining the bliss of ignorance."
--- ./libstdc++-v3/include/bits/std_bitset.h.lfarkas	Wed Nov  1 11:31:53 2000
+++ ./libstdc++-v3/include/bits/std_bitset.h	Wed Nov  1 11:34:23 2000
@@ -374,7 +374,8 @@
 // Definitions of non-inline functions from the single-word version of
 //  _Base_bitset.
 //
-
+// __STL_TEMPLATE_NULL 
+inline
 size_t _Base_bitset<1>::_M_do_find_first(size_t __not_found) const
 {
   _WordT __thisword = _M_w;
@@ -394,6 +395,8 @@
   return __not_found;
 }
 
+// __STL_TEMPLATE_NULL 
+inline
 size_t _Base_bitset<1>::_M_do_find_next(size_t __prev, size_t __not_found ) const
 {
   // make bound inclusive


More information about the Libstdc++ mailing list