This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: /usr/include/c++/3.2/bits/basic_string.tcc:713: parse error before `(' token
- From: Per Jessen <per at computer dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 27 Sep 2002 12:22:18 +0200
- Subject: Re: /usr/include/c++/3.2/bits/basic_string.tcc:713: parse error before `(' token
- Organization: n/a
- References: <564DE4477544D411AD2C00508BDF0B6A0C9DDB1D@usahm018.exmi01.exch.eds.com> <3D9424A4.8060801@computer.org>
All,
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
wrong ?
/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)
> const':
> > /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);
>
--
regards,
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."