Boost logo

Boost Users :

Subject: Re: [Boost-users] [spirit][karma+phoenix] Show result of member function
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2010-04-06 08:52:42


> How can karma be used to show the result of applying a member
> function to
> objects in a container? Consider the following code (which does not
> compile)
> to show the real and the imaginary parts of complex numbers stored in a
> vector:

I added a new example (libs/spirit/example/karma/complex_number_adapt.cpp)
demonstrating how to solve this by employing the new FUSION_ADAPT_CLASS
macro.

HTH
Regards Hartmut

---------------
Meet me at BoostCon
www.boostcon.com


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net