Boost logo

Boost :

Subject: Re: [boost] [parameter] type requirement compiler error
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-10-24 14:16:55


on Mon Oct 24 2011, lcaminiti <lorcaminiti-AT-gmail.com> wrote:

> Hello all,
>
> The following parameter type requirement:
>
> (required (graph, *) )
> (optional (root_vertex,
> (typename
> boost::graph_traits<graph_type>::vertex_descriptor),
> *boost::vertices(graph).first) )
>
> Generates a GCC error:
>
> dfs.05.cpp:40: error: ‘graph_type’ was not declared in this scope

Yeah.... I'm guessing this is what graphs::graph::_ is all about, but
according to revision control, Daniel made this happen, and there's
basically no documentation for it. Daniel?

>
>
> Detailed code and error below.
>
> In fact, if I look at the code after pp, I can see that graph_type is define
> only after the type requirement is checked... why? What am I doing wrong?
>
> Thanks a lot!

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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