7 Nov
2008
7 Nov
'08
9:22 p.m.
Christian Henning
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.