Boost logo

Boost :

From: Tal Agmon (tal.boost_at_[hidden])
Date: 2006-05-22 08:20:24


Hello,

I use multi_index as follow with success:

typedef boost::multi_index::multi_index_container<
                  boost::shared_ptr<NodeBase>,
                  boost::multi_index::indexed_by<
                  boost::multi_index::ordered_unique<
                          BOOST_MULTI_INDEX_CONST_MEM_FUN(NodeBase, handle, getHandle)
>,
                  boost::multi_index::ordered_non_unique<
                          BOOST_MULTI_INDEX_CONST_MEM_FUN(NodeBase, group_id, memberOf)
>
>
> NodePtrSet;

but I would like NodeBase inherite boost::enable_shared_from_this<NodeBase>
I get error C2964: invalid expression as template parameter using msvc 6

any idea?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk