Boost logo

Boost Users :

From: Dan Dimerman (dimerman_at_[hidden])
Date: 2005-01-08 10:46:17


Hello,

I'm trying to compile code similar to (copied and pasted from) the
bidirectional map example, but my VC7.0 burps some errors and then an
INTERNAL COMPILER ERROR.

The code looks like this:

#include <boost/multi_index_container.hpp>
#include <boost/multi_index/member.hpp>
#include <boost/multi_index/key_extractors.hpp>

using boost::multi_index_container;
using namespace boost::multi_index;

typedef unsigned long uid_t;

typedef struct {
        uid_t _uid;
        vertex_descriptor _vertex;
} node;

struct uid {};
struct vertex {};

typedef multi_index_container <
        node,
        indexed_by<
        ordered_unique< tag< uid >, BOOST_MULTI_INDEX_MEMBER( node, uid_t, _uid
) >,
        ordered_unique< tag< vertex>, BOOST_MULTI_INDEX_MEMBER( node,
vertex_descriptor, _vertex ) >
>
> node_set_t;

and some of the errors I get are:

c:\...\multi_index\detail\msvc_index_specifier.hpp(45) : error C2504:
'node_class' : base class undefined
c:\...\multi_index\detail\msvc_index_specifier.hpp(45) : error C2143:
syntax error : missing ',' before '<'
c:\...\multi_index\detail\msvc_index_specifier.hpp(52) : error C2039:
'index_class' : is not a member of
'boost::multi_index::detail::msvc_index_specifier<IndexSpecifier>::fake_index_type<__formal>'

(repeated several times)

I am sure I am doing something very dumb. Any help will be greatly
appreciated.

Thanks

Dan


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