Boost logo

Boost :

Subject: [boost] [ratio] Test failing on trunk
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2011-01-04 02:25:40


Hi,

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'

Do you know a compiler macro that states if the -pedantic option is set. Otherwise I see two options:

A- Don't test Boost.ratio with this option and add to the documentation the limitation.
B Add a explicit macro BOOST_DONT_USE_LONG_LONG
The definition of boost::intmax_t should relay on another type in this case.

I think the best is option A, as Boost.Ratio could not respect the requirements if the type is not long long.

What other think?
Best,
_____________________
Vicente Juan Botet Escribá
http://viboes.blogspot.com/


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