$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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