Boost logo

Boost :

From: Sandeep Gupta (gupta.sandeep_at_[hidden])
Date: 2008-05-31 15:37:46


Hi,
  My attempt to inherit boost graph failed. The compiler complains that it
is not aware of boost graph classes.
 Would appreciate if someone can tell if this due to boost intricacies or
just regular mistake in the syntax.

//Declare boost graph within namespace boostd
namespace boostd {
typedef adjacency_list<listS, listS, ... > Graph;
typedef graph_traits<Graph>::vertex_descriptor Vertex;
}

class DerivedGraph: public boostd::Graph{
    public:
        class Node: public boostd::Vertex{ //error on
this line
        };
};

The compiler complains
 error: expected class-name before '{' token

Thanks
sandeep


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