|
Boost Users : |
From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2007-03-23 11:14:16
Ovanes Markarian ha escrito:
> Hello all,
>
> Currently I have an opportunity to use boost::bimap in my project. I was really intrigued by the
> docs and features the library offers, so I used the review version from the vault. The translator
> example is that what I need in my project, but unfortunately I can not compile it. Possibly
> because I use the CVS head revision which might be broken.
>
> The errors I get are following:
>
> error C2661:
> 'boost::bimap::container_adaptor::sequence_container_adaptor<Base,Iterator,ConstIterator,ReverseIterator,ConstReverseIterator,IteratorToBaseConverter,IteratorFromBaseConverter,ReverseIteratorFromBaseConverter,ValueToBaseConverter,ValueFromBaseConverter,FunctorsFromDerivedClasses>::insert'
> : no overloaded function takes 1 arguments
[...]
> There is also some error in the docs for Mighty Bimap:
> (http://cablemodem.fibertel.com.ar/mcape/boost/libs/bimap/boost_bimap/examples/mighty_bimap.html)
>
> ....
> typedef translator_bimap::relation translation;
> translator_bimap translator;
> ....
>
> iterator_type_by<spanish,translator_bimap>::type is = map_by<spanish>(d).find(word);
> ^^^error
>
> I think d should be 'translator'
Hello Ovanes, I think both problems are mere typos in the
example code, please take a look at
http://lists.boost.org/Archives/boost/2007/02/116985.php
to see if it helps.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
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