$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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