This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: STL errors
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Ahm <minhaja at bsquare dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 21 Jan 2010 18:51:48 +0100
- Subject: Re: STL errors
- References: <27261391.post@talk.nabble.com>
On 01/21/2010 06:25 PM, Ahm wrote:
> I am trying to compile some code with a lot of template classes and keep
> getting the following error:
>
> In file ncluded from /usr/include/c++/4.2/memory:57
> from /usr/include/c++/4.2/string:48
> ......
> /usr/include/c++/4.2/bits/stl_tree.h: In function 'bool
> std::operator==(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Copare,
> _Alloc>&, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&):
> /usr/include/c++/4.2/bits/stl_tree.h:758: error: 'equal' is not a member of
> 'std'
>
It's impossible to analyze such a problem without a full self-contained
snippet of code. In any case, if including <algorithm>, to which
std::equal belongs, in your code, doesn't fix it, something is seriously
broken somewhere.
Paolo.