Boost logo

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>> 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, kalb at, bjorn.karlsson at, gregod at, wekempf at