bgl connected_components ComponentMap

Hi, I wrote my own property map class, and wanted to use it in the connected_component function, in order to retrieve the components. When it didn't work, I realised that the component map is copied internally, that is the result was written in the copy. I have an obvious solution for this, but I am nevertheless wondering if I missed something in the definition of the property map concept, or the connected_component class. thank you in advance, andreas

On Aug 6, 2004, at 3:40 PM, Andreas Fabri wrote:
I have an obvious solution for this, but I am nevertheless wondering if I missed something in the definition of the property map concept, or the connected_component class.
I'm not sure if anything is missing per se, but this point could probably be emphasized in the property map documentation. Property maps are always passed by-value (just like function objects are). Doug
participants (2)
-
Andreas Fabri
-
Doug Gregor