[Boost.Multi-Index] ICE w/ VC7.1

I'm just trying to use Boost.MultiIndex in a large project but I'm not
being able to compile this library with VC 7.1.6030: I've got an ICE in
file "apply_wrap.hpp" of Boost.MPL. I've tried to change the headers
order but without success.
My environment is:
- Windows XP
- Boost 1.33.1
- VC 7.1.6030
To demonstrate this ICE, you will find hereafter a code snippet.
Thanks in advance.
Marc Viala
// MultiIndex Container
#include
key_cls ; typedef const_mem_fun< Item , const std::string& , &Item::getId key_id ; typedef composite_key
- ckey_clsid ; typedef composite_key< Item , ordered_non_unique
> , ordered_non_unique > > ckey_ij ; typedef multi_index_container< Item, indexed_by< ordered_non_unique , ordered_non_unique , ordered_unique > ObjectContainer ;
ObjectContainer c ; }

Hello Marc,
----- Mensaje original -----
De: Marc Viala
I'm just trying to use Boost.MultiIndex in a large project but I'm not being able to compile this library with VC 7.1.6030: I've got an ICE in file "apply_wrap.hpp" of Boost.MPL. I've tried to change the headers order but without success.
My environment is: - Windows XP - Boost 1.33.1 - VC 7.1.6030
To demonstrate this ICE, you will find hereafter a code snippet.
Thanks in advance.
Marc Viala [...] typedef composite_key< Item , ordered_non_unique
> , ordered_non_unique > ckey_ij ;
I think the problem lies here: you must provide composite_key<>
with *key extractors*, not index specifiers. Please try
rewriting ckey_ij like this:
typedef composite_key<
Item
, member
participants (2)
-
"JOAQUIN LOPEZ MU?Z"
-
Marc Viala