Boost logo

Boost Users :

Subject: Re: [Boost-users] [units] Unable to print temperature quantity
From: Matthias Schabel (boost_at_[hidden])
Date: 2011-11-13 12:05:05


> 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


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