Re: [boost] multi_index problem in VC 7.1

----- Mensaje original ----- De: Alexander Ivanov <amivanov@gmail.com> Fecha: Lunes, Noviembre 21, 2005 9:37 pm Asunto: Re: [boost] multi_index problem in VC 7.1
I'm having trouple compiling multi_index_container<> with VC++7.1
Wait, I think I found something...
I started from bidirectional_map example from the library (http://www.boost.org/libs/multi_index/doc/examples.html#example4), that compiles and works just fine.
then i've added third tempate parameter CompareLessT to the bidirectional map:
template<typename FromT, typename ToT, typename CompareLessT> struct bidir_map { typedef std::pair<std::string, std::string> value_type;
typedef multi_index_container< value_type , indexed_by< ordered_unique< tag<from> , member<value_type, FromT, &value_type::first> , CompareLessT> , ordered_unique< tag<to> , member<value_type, ToT, &value_type::second> > ^^^ Here, you are misplacing the second '>'. It should go after CompareLesstT below.
, CompareLessT > > type; };
HTH Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

it was a typo here in the post. sorry... On 11/21/05, JOAQUIN LOPEZ MU?Z <joaquin@tid.es> wrote:
----- Mensaje original ----- De: Alexander Ivanov <amivanov@gmail.com> Fecha: Lunes, Noviembre 21, 2005 9:37 pm Asunto: Re: [boost] multi_index problem in VC 7.1
I'm having trouple compiling multi_index_container<> with VC++7.1
Wait, I think I found something...
I started from bidirectional_map example from the library (http://www.boost.org/libs/multi_index/doc/examples.html#example4), that compiles and works just fine.
then i've added third tempate parameter CompareLessT to the bidirectional map:
template<typename FromT, typename ToT, typename CompareLessT> struct bidir_map { typedef std::pair<std::string, std::string> value_type;
typedef multi_index_container< value_type , indexed_by< ordered_unique< tag<from> , member<value_type, FromT, &value_type::first> , CompareLessT> , ordered_unique< tag<to> , member<value_type, ToT, &value_type::second> > ^^^ Here, you are misplacing the second '>'. It should go after CompareLesstT below.
, CompareLessT > > type; };
HTH
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Alexander Ivanov
-
JOAQUIN LOPEZ MU?Z