c++ - boost::multiprecision::float128 and C++11 -
i'm trying use boost::multiprecision::float128
(boost 1.55.0) under c++11 (gcc 4.8.1), following compiler error:
/cm/shared/apps/boost/gcc/1.55.0/include/boost/multiprecision/float128.hpp: in static member function ‘static std::numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, et> >::number_type std::numeric_limits<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, et> >::min()’: /cm/shared/apps/boost/gcc/1.55.0/include/boost/multiprecision/float128.hpp:533:55: error: unable find numeric literal operator ‘operator"" q’ static number_type (min)() boost_noexcept { return 3.36210314311209350626267781732175260e-4932q; }
can't use boost::multiprecision::float128
in c++11? or how else working?
edit
just clarify. error generated
#include <boost/multiprecision/float128.hpp>
the compiler not happy statement
return 3.36210314311209350626267781732175260e-4932q;
in particular q
confusing it. used compiler flags -std=c++11 -fabi-version=0 -march=native -mfpmath=sse
it looks known issue. try compiling -fext-numeric-literals
.
Comments
Post a Comment