This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
bitset patch
- To: STDC++ <libstdc++ at sources dot redhat dot com>
- Subject: bitset patch
- From: Levente Farkas <lfarkas at mindmaker dot hu>
- Date: Wed, 01 Nov 2000 11:35:02 +0100
- Organization: Mindmaker Ltd.
- Reply-To: lfarkas at mindmaker dot hu
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