Boost logo

Boost Users :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2006-11-09 03:46:05


ClassyK_Danad wrote:
> return a < b ? a : b;
>
A conditional expression can only return one type, so one of the values
must be promoted to the other. (In this case, int -> double.) Split it
into a full if statement and it should work.

Sebastian Redl


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