
13 Nov
2011
13 Nov
'11
10:05 a.m.
Hi,
I'm a complete neophyte with the units library. I have cause to use it so I'm trying to do something simple and am getting compile problems. This code:
#include <iostream> #include <boost/units/io.hpp> #include <boost/units/quantity.hpp> #include <boost/units/systems/temperature/fahrenheit.hpp>
int main(int, char **) { using namespace boost::units; quantity<fahrenheit::temperature> t; std::cout << t << std::endl; return 0; }
FWIW, this works fine under Xcode 4.2… Matthias