
Vladimir Prus <ghost@cs.msu.su> writes:
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.
Yeah but they're ugly to the user, and bad to maintain for the developer. Adding a new parameter name ties it to all the other parameter names because they have to be members of the same class template. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com