$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [phoenix] another problem with member_variable bind
From: Adam Merz (adammerz_at_[hidden])
Date: 2008-11-07 16:22:26
Christian Henning <chhenning <at> gmail.com> writes:
> Hi there, I'm trying to multiply a factor to my probabilities by using
> the std::transform algorithm. But it results in a compiler error.
<snip>
> The error is:
>
> error C2679: binary '=' : no operator found which takes a right-hand
> operand of type 'double' (or there is no acceptable conversion)
That's working fine -- the result type of 'bind(&point::_prob, _1) * 2.' is a
double, you're telling it to transform into a vector of points, and point
doesn't have a double conversion constructor. Transform into a container of
doubles and it compiles cleanly.