
6 Apr
2010
6 Apr
'10
12:52 p.m.
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