Boost logo

Boost Users :

From: Themistoklis Bourdenas (themis_at_[hidden])
Date: 2006-07-31 10:47:03


Could you help me understand what I'm doing wrong in the code below? I'm
trying to setup a multi_index structure of class B.

class A
{
        const std::string& ID(void) const;
        ...
};

class B : public A
{
        ...
};

typedef boost::multi_index::multi_index_container<
        B*,
        boost::multi_index::indexed_by<
                boost::multi_index::ordered_unique<
                        boost::multi_index::const_mem_fun<A, const std::string&, &A::ID>
>
>
> BSet;

However when I compile VS2005 returns me an "illegal indirection"
compile error. Any thoughts?

Thanks


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