[PropertyMap] proposing compose_property_map

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. Thanks.

On Sun, 17 Feb 2013, Guillaume Pinot wrote:
The one thing I see that needs to be changed is that the test and example files need copyright and license notices. Could you please do that update? Also, I don't remember the policy on tabs in HTML files, but it might be nice if you removed the one that was in there. Thanks. -- Jeremiah Willcock
participants (2)
-
Guillaume Pinot
-
Jeremiah Willcock