|
Boost : |
Subject: Re: [boost] [PropertyMap] proposing compose_property_map
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2013-02-19 13:10:15
On Sun, 17 Feb 2013, Guillaume Pinot wrote:
> Hi.
>
> Using boost graph, and particulary reverse_graph, I needed a
> compose_property_map adaptor. As it may be interesting to everyone, I
> propose my code.
>
> http://texitoi.eu/~texitoi/compose_property_map/
>
> I had problems to find a good return type for the get() free function.
> The solution proposed here has the drawback of needing a copy
> constructible type for the value_type of the FPMap in the concept
> checks. I didn't find any other type for the get() function that pass
> the concept checks and that do not return stack variable, and avoid
> useless copy.
>
> The patch may not work completely as I am discovering the boost build
> system.
>
> I am open to any comment.
The patch looks right to me; I'll merge that into the trunk and fix any
build issues that come up.
-- Jeremiah Willcock
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk