Boost logo

Boost Users :

From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2008-09-03 14:26:35


Hi:
Ok, how do I use a custom comparison operator in an iterator, This isn't
covered in the instantiation scheme.
Cheers
 Sean.

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Annamalai
Gurusami
Sent: 03 September 2008 19:03
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Bitset issue

On Wed, Sep 3, 2008 at 12:19 PM, Sean Farrow
<sean.farrow_at_[hidden]> wrote:
> Hi:
> Your right!
> What is wrong with this iterator definition:
> boost::bimap< std::bitset<6>, int, BitSetComp>::left_map::iterator
> DotsIterator;

I think the problem is in the third template parameter. The third
template argument to boost::bimap is different from that of the
std::map. Please read the following section of the documentation:

http://www.boost.org/doc/libs/1_35_0/libs/bimap/doc/html/boost_bimap/the
_tutorial/complete_instantiation_scheme.html

Rgds,
anna

> I get the following 4 errors:
> error C2903: 'rebind' : symbol is neither a class template nor a
> function template bimap_core.hpp 408
> error C2039: 'rebind' : is not a member of 'BitSetComp' bimap_core.hpp
> 408
> error C2146: syntax error : missing ',' before identifier 'rebind'
> bimap_core.hpp 408
> error C2065: 'rebind' : undeclared identifier bimap_core.hpp 408
> Any help apreciated, I'm pulling my fair out as we speak!
> Sean
>

-- 
Abusive Language on Internet
http://missingrainbow.blogspot.com/2008/08/abusive-language-on-internet.
html
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
 
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3412 (20080903) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
 
 
__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3412 (20080903) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
 

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