13 Sep
2013
13 Sep
'13
11:56 p.m.
AMDG On 09/13/2013 03:48 PM, Robert Ramey wrote:
Steven Watanabe wrote:
On 09/13/2013 01:54 PM, Robert Ramey wrote:
<snip> void main(){ using namespace boost::units; using namespace boost::units::si; using namespace boost::units::us; quantity
l1; l1 = 1000.0 * meters; quantity l2; l2 = 1.0 * miles; // compile error quantity l3 = l1 + l2; } <snip>
Try static_cast.
could you give me an example? That is how should the statement
l2 = 1.0 * miles; // compile error
be modified?
l2 = static_cast