This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: STL errors


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.


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