Boost Users :
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.
> 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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net