Subject: Re: [boost] [property-map] Generalizing identity_property_map for arbitrary types
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2009-12-08 22:46:15
On Tue, 8 Dec 2009, Belcourt, Kenneth wrote:
> On Dec 8, 2009, at 3:57 PM, Jeremiah Willcock wrote:
>> On Tue, 8 Dec 2009, Belcourt, Kenneth wrote:
>>> I've found the property map library to be very useful and would like to
>>> propose a minor enhancement to permit the identity_property_map to work
>>> arbitrary types. The reason for this is that some computationally
>>> algorithms suffer noticeable performance degradation when I convert them
>>> generic algorithms using property maps. Having a typed identity property
>>> that returns, for example, the double passed into it significantly speeds
>>> our algorithms, at least for those fields that are not mutable.
>>> I've attached a patch, and could supply a motivating example, if anyone is
>> I don't see a patch attached to your email. Could you please file a
>> feature request on Trac for property_map? Thank you.
> -- Noel
This is applied in r58246. Thank you for your patch.
-- Jeremiah Willcock
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk