/usr/include/c++/3.2/bits/basic_string.tcc:713: parse error before `(' token
Fri Sep 27 03:31:00 GMT 2002
being new to this list, I don't know if is this the right place
to ask, but here we go.
I believe there is a problem in /usr/include/c++/3.2/bits/basic_string.tcc -
see excerpt from a listing below.
Line 713 reads
__pos = std::min(__size - __n, __pos);
but I believe this should be
__pos = min(__size - __n, __pos);
Am I right in thinking that min is a macro and not part of the "std"
namespace ? I saw some discussion related to this on gcc-bugs, but I
didn't see anyone actually calling it a bug. Or am I doing something
/Per Jessen, Zurich
> > In file included from /usr/include/c++/3.2/string:57,
> > from LVCSim_liveCacheSink.cpp:60:
> > /usr/include/c++/3.2/bits/basic_string.tcc: In member function
> > `_Alloc::size_type std::basic_string<_CharT, _Traits,
> > _Alloc>::rfind(const _CharT*, _Alloc::size_type, _Alloc::size_type)
> > /usr/include/c++/3.2/bits/basic_string.tcc:713: parse error before
> `(' token
> > The line at 713 is this:
> > __pos = std::min(__size - __n, __pos);
Per Jessen, Zurich
http://www.enidan.com - home of the J1 serial console.
Windows 2001: "I'm sorry Dave ... I'm afraid I can't do that."
More information about the Gcc-help