$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [fusion] how to get the tuple of min values of 2 tuples whatever their length?
From: Bjorn Reese (breese_at_[hidden])
Date: 2013-07-17 12:41:54
On 07/17/2013 01:17 PM, Frédéric Bron wrote:
> I have tried with boost::fusion::accumulate but I need to now in the
> functor the index of the value that is currently accessed to compare
> to the right one in k1.
Others have already pointed you to fusion::transform. There is a
complete example of this in the documentation, albeit it does pairwise
subtraction instead of min:
http://www.boost.org/fusion/doc/html/fusion/functional/adapters/fused_function_object.html