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::insert'
: no overloaded function takes 1 arguments
with
[
Base=boost::multi_index::detail::sequenced_index,spanish>,boost::bimap::tags::tagged,english>,true>,boost::bimap::detail::bimap_corestd::string,spanish>,boost::bimap::tags::taggedstd::string,english>,boost::bimap::list_of_relation,boost::mpl::na,boost::mpl::na>::core_indices,std::allocator,spanish>,boost::bimap::tags::tagged,english>,true>>>,boost::mpl::vector1boost::bimap::detail::independent_index_tag>,
Iterator=boost::bimap::detail::set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,
ConstIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,
ReverseIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
ConstReverseIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
IteratorToBaseConverter=boost::bimap::container_adaptor::support::iterator_facade_to_base,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
IteratorFromBaseConverter=boost::mpl::na,
ReverseIteratorFromBaseConverter=boost::mpl::na,
ValueToBaseConverter=boost::mpl::na,
ValueFromBaseConverter=boost::bimap::relation::support::get_above_view_functor,spanish>,boost::bimap::tags::tagged,english>,true>>,
FunctorsFromDerivedClasses=boost::mpl::vectorboost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,b...
]
main.cpp(66) : error C2661:
'boost::bimap::container_adaptor::sequence_container_adaptor::insert'
: no overloaded function takes 1 arguments
with
[
Base=boost::multi_index::detail::sequenced_index,spanish>,boost::bimap::tags::tagged,english>,true>,boost::bimap::detail::bimap_corestd::string,spanish>,boost::bimap::tags::taggedstd::string,english>,boost::bimap::list_of_relation,boost::mpl::na,boost::mpl::na>::core_indices,std::allocator,spanish>,boost::bimap::tags::tagged,english>,true>>>,boost::mpl::vector1boost::bimap::detail::independent_index_tag>,
Iterator=boost::bimap::detail::set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,
ConstIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,
ReverseIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
ConstReverseIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
IteratorToBaseConverter=boost::bimap::container_adaptor::support::iterator_facade_to_base,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
IteratorFromBaseConverter=boost::mpl::na,
ReverseIteratorFromBaseConverter=boost::mpl::na,
ValueToBaseConverter=boost::mpl::na,
ValueFromBaseConverter=boost::bimap::relation::support::get_above_view_functor,spanish>,boost::bimap::tags::tagged,english>,true>>,
FunctorsFromDerivedClasses=boost::mpl::vectorboost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,b...
]
main.cpp(67) : error C2661:
'boost::bimap::container_adaptor::sequence_container_adaptor::insert'
: no overloaded function takes 1 arguments
with
[
Base=boost::multi_index::detail::sequenced_index,spanish>,boost::bimap::tags::tagged,english>,true>,boost::bimap::detail::bimap_corestd::string,spanish>,boost::bimap::tags::taggedstd::string,english>,boost::bimap::list_of_relation,boost::mpl::na,boost::mpl::na>::core_indices,std::allocator,spanish>,boost::bimap::tags::tagged,english>,true>>>,boost::mpl::vector1boost::bimap::detail::independent_index_tag>,
Iterator=boost::bimap::detail::set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,
ConstIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,
ReverseIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
ConstReverseIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
IteratorToBaseConverter=boost::bimap::container_adaptor::support::iterator_facade_to_base,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
IteratorFromBaseConverter=boost::mpl::na,
ReverseIteratorFromBaseConverter=boost::mpl::na,
ValueToBaseConverter=boost::mpl::na,
ValueFromBaseConverter=boost::bimap::relation::support::get_above_view_functor,spanish>,boost::bimap::tags::tagged,english>,true>>,
FunctorsFromDerivedClasses=boost::mpl::vectorboost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,b...
]
main.cpp(68) : error C2661:
'boost::bimap::container_adaptor::sequence_container_adaptor::insert'
: no overloaded function takes 1 arguments
with
[
Base=boost::multi_index::detail::sequenced_index,spanish>,boost::bimap::tags::tagged,english>,true>,boost::bimap::detail::bimap_corestd::string,spanish>,boost::bimap::tags::taggedstd::string,english>,boost::bimap::list_of_relation,boost::mpl::na,boost::mpl::na>::core_indices,std::allocator,spanish>,boost::bimap::tags::tagged,english>,true>>>,boost::mpl::vector1boost::bimap::detail::independent_index_tag>,
Iterator=boost::bimap::detail::set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,
ConstIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,
ReverseIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
ConstReverseIterator=boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
IteratorToBaseConverter=boost::bimap::container_adaptor::support::iterator_facade_to_base,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>,boost::bimap::detail::const_set_view_iterator,spanish>,boost::bimap::tags::tagged,english>,true>>>>>>>>,
IteratorFromBaseConverter=boost::mpl::na,
ReverseIteratorFromBaseConverter=boost::mpl::na,
ValueToBaseConverter=boost::mpl::na,
ValueFromBaseConverter=boost::bimap::relation::support::get_above_view_functor,spanish>,boost::bimap::tags::tagged,english>,true>>,
FunctorsFromDerivedClasses=boost::mpl::vectorboost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,b...
]
Build log was saved at "file://e:\projects\testing_project\Debug\BuildLog.htm"
testing_project - 4 error(s), 0 warning(s)
There is also some error in the docs for Mighty Bimap:
(http://cablemodem.fibertel.com.ar/mcape/boost/libs/bimap/boost_bimap/example...)
....
typedef translator_bimap::relation translation;
translator_bimap translator;
....
iterator_type_by::type is = map_by<spanish>(d).find(word);
^^^error
I think d should be 'translator'
With Kind Regards,
Ovanes