Boost logo

Boost :

Subject: [boost] [ratio] clang warning
From: Peter Dimov (lists_at_[hidden])
Date: 2015-01-15 11:48:23


Ratio gives a warning under Clang:

..\..\..\include/boost/ratio/ratio_fwd.hpp:87:58: warning: 'long long' is a
C++11 extension [-Wc++11-long-long]
typedef ratio<BOOST_RATIO_INTMAX_C(1000000000000000000),
BOOST_RATIO_INTMAX_C(1)> exa;
                                                         ^
..\..\..\include/boost/ratio/config.hpp:47:33: note: expanded from macro
'BOOST_RATIO_INTMAX_C'
#define BOOST_RATIO_INTMAX_C(a) INTMAX_C(a)
                                ^
..\..\..\include/boost/cstdint.hpp:66:26: note: expanded from macro
'INTMAX_C'
# define INTMAX_C(c) c##LL
                         ^

I'm not sure how this can be avoided though.


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