Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-04-15 09:02:58


David Abrahams wrote:

>> I hope that with the named parameters library it will be possible to do:
>>
>> add_edge(v1, v2, (vertex_color = 10, vertex_name = "foo"), g);
> ^--------------------------------------^
>
> What are these for? That's not part of how the library works, at
> least today... oh, I see you're trying to deal with the "unbounded
> number of vertex properties" problem.

Right.

> Probably the library should be
> modified a bit to help with that sort of situation. We really
> envisioned that it could help the graph library by just making the
> interfaces to the algorithms, which have lots of default arguments,
> much easier.

Well, I think BGL already supports default arguments in its named
parameters. For me, the biggest advance of using this library for BGL
(besides the above use case) would be the fact that the procedure for
declaring/using named parameters is *documented*. With current BGL
implementation, I'm still at loss.

>> Comments are appreciated.
>
> I think we can whip something together for you.

That's great.

- Volodya

 


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