problems with libstdc++/stl/bitset in 1122 snapshot
Jeff Sparkes
jsparkes@internetivity.com
Thu Nov 26 12:01:00 GMT 1998
First of all, bitset is not included in the list of headers to install
in Makefile.in
Once it is installed, I get error from one of the constructors. It looks
valid to
me, but I don't claim much C++ knowledge.
There errors are:
/usr/local/egcs/include/g++-2/bitset:630: parse error before `>'
/usr/local/egcs/include/g++-2/bitset:635: warning: ANSI C++ forbids
declaration `_M_copy_from_string' with no type
/usr/local/egcs/include/g++-2/bitset:635: warning: ANSI C++ forbids
initialization of member `_M_copy_from_string'
/usr/local/egcs/include/g++-2/bitset:635: warning: making
`_M_copy_from_string' static
/usr/local/egcs/include/g++-2/bitset:635: ANSI C++ forbids in-class
initialization of non-const static member `_M_copy_from_string'
/usr/local/egcs/include/g++-2/bitset:635: confused by earlier errors,
bailing out
The constructor in question is as follows:
template<class _CharT, class _Traits, class _Alloc>
explicit bitset(const basic_string<_CharT,_Traits,_Alloc>& __s,
size_t __pos = 0,
size_t __n = basic_string<_CharT,_Traits,_Alloc>::npos)
: _Base()
{
if (__pos > __s.size())
__STL_THROW(out_of_range("bitset"));
_M_copy_from_string(__s, __pos, __n);
}
I'm able to proceed by just commenting the constructor out since my code
doesn't use it, but I'm sure somebody cares about the problem.
More information about the Gcc-bugs
mailing list