Boost logo

Boost Users :

Subject: Re: [Boost-users] [bimap] Problem with finding elements in a vector_of
From: Teto (mattator_at_[hidden])
Date: 2011-08-10 08:41:06


solved.

when I had read "no match for 'operator=='" in the error, I thought that was
because the right value was a wrong iterator since I thought a default "=="
operator was created by the compiler (same as with operator=) . I was wrong
: once I implemented the operator== it worked just fine.

On Thu, Aug 4, 2011 at 8:59 PM, Teto <mattator_at_[hidden]> wrote:

> I am using C++0x and even with a space, the compilation error points
> the line (I should have written it in my first post):
> " if( specificDescriptor == (i->first)){ "
>
> Thx for having a look on it though
>
> On Wed, Aug 3, 2011 at 11:44 PM, Brian Budge <brian.budge_at_[hidden]>
> wrote:
> >
> > On Wed, Aug 3, 2011 at 12:10 PM, Teto <mattator_at_[hidden]> wrote:
> > > Hi,
> > > I've a peculiar bimap defined as such:
> > > bbi::bimap< bbi::unordered_set_of< TFullId>,
> > > bbi::vector_of<CBindDescriptor>>
> > > And I want to find all the TFullId matching a certain CBindDescriptor.
> but I
> > > can't succeed in compiling.
> > > Here are 10 lines of code:
> > > http://boost.codepad.org/99V38S9U
> > >
> > > Thx for any hint
> > > matt
> >
> > If you're not using c++0x, you need a space between successive '>'
> > characters in your templates.
> >
> > Brian
> > _______________________________________________
> > Boost-users mailing list
> > Boost-users_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net