$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Help with a boost::lambda problem and boost::array?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-21 22:09:27
AMDG
jesseperla_at_[hidden] wrote:
> Does anyone have an idea why the following doesn't compile:
> using lambda::_1;
> using lambda::_2;
> boost::function<double (const boost::array<double, 2>&)> f =
> lambda::ret<double>(_1[0] * _1[1]);
It probably fails because Boost.Lambda doesn't know how
to find the return type of the subscript operator for boost::array.
In Christ,
Steven Watanabe