On Wed, Jun 30, 2010 at 10:08 AM, Pitu <pitu@...> wrote:
> On Wed, Jun 30, 2010 at 1:52 AM, Joel de Guzman
> <joel@...> wrote:
>> Have you tried using phoenix::bind or phoenix::function to
>> get the member?
> Thanks Joel, I'll give it a try!
I didn't get my example working with phoenix::function but with
phoenix::bind. It was actually quite straightforward:
pair = vehicleShrPtr [ _val = construct< VehiclePair > (
I've attached a working example. That's a simple example of how
parsing objects into an associative container where the key is an
attribute of the object itself.
Thanks for the hints!