Boost logo

Boost :

Subject: Re: [boost] [ratio] Test failing on trunk
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-01-04 07:11:43


>> Boost.ratio is failing with compiler option -pedantic
>>
>> Test output: Sandia-darwin-4.0.1 - ratio - ratio_pass / darwin-4.0.1
>> Rev 67644 / Tue, 4 Jan 2011 01:50:26 +0000
>> ...
>> ../libs/ratio/test/ratio_ratio/ratio_pass.cpp:24: error: ISO C++ does not
>> support 'long long'
>
> Shouldn't it be a warning rather than an error?

It's a hard error with -pedantic unless you use -Wno-long-long.

You can also use boost::long_long_type and boost::ulong_long_type (defined
in config.hpp) to avoid this issue.

HTH, John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk