Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-02-05 08:28:45


Jeremy, I see this in docs:

boost::graph_traits<G>::directed_category
  The choices are directed_tag and undirected_tag.

However, the following code:

    typedef typename boost::graph_traits<MutableGraph>::directed_category dir;

       dir()[10];

Produces this message:

/home/ghost/Work/boost/boost/graph/random.hpp:112: no match for `
    boost::bidirectional_tag [int]' operator

which means that directed_category can be bidirectional_tag. Even though
bidirectional_tag is derived from directed_tag, this is not allowed by docs.
So, where's the bug? In docs or implementation?

- Volodya


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