$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2008-08-04 10:27:15
> I'm using boost spirit. I have a semantic action attached to a real_p.
> Is there a wy to get the current scanner position from this semantic
> action? For all the generic semantic actions, I can use the
> position_iterator, but since real_p only accepts functions/functors
> with a float argument, I'm kind of lost.
(real_p >> eps_p)[...]
should give you the pair of iterators.
FWIW, in Spirit2 we have the raw[] directive for that.
Regards Hartmut