Boost logo

Boost :

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

  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{
        class Node: public boostd::Vertex{ //error on
this line

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


Boost list run by bdawes at, gregod at, cpdaniel at, john at