This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: /usr/include/c++/3.2/bits/basic_string.tcc:713: parse error before `(' token


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."




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]