Steven Watanabe wrote:
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
>(1.0 * miles);
Hmmmm - OK this looks promising, but I get another compiler error with MSVC
1>z:\projects\geflightquest\simulator2\solvecpp\flight.cpp(14) : error
C2065: 'miles' : undeclared identifier
it looks like I'm missing something; Here is the test program again - with
all the headers.
#include
In Christ, Steven Watanabe
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost