|
Boost Users : |
Subject: [Boost-users] problem with boost units
From: Robert Ramey (ramey_at_[hidden])
Date: 2015-09-17 01:31:28
the following small example fails to compile and points to error in
assignment. For the life of me I can't figure why this should fail.
Any help appreciated.
Robert Ramey
// include headers to implement output operations for quantities with units
#include <iostream>
#include <boost/units/io.hpp>
#include <boost/units/systems/si/volume.hpp>
int main(){
boost::units::si::volume fuel_capacity;
fuel_capacity = 9.0f * boost::units::si::cubic_meters;
------------------^
std::cout << " " << fuel_capacity << "\n";
return 0;
}
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