Boost logo

Boost Users :

From: A.Dmitrovsky (tdiff_at_[hidden])
Date: 2020-05-15 10:03:07


Hi,
 
Boost::multiprecision docs [1] mentions that the type parameter of number::convert_to method should be "fundamental", pointing to the list of standard types ('A number can be converted to any fundamental (built-in) type)'.
This is different to number::convert_to reference [2], which states that "Type T may be any arithmetic type".
 
Can [unsigned] __int128 be treated as "fundamental" on compilers/platforms which support it?
 
[1] https://www.boost.org/doc/libs/1_73_0/libs/multiprecision/doc/html/boost_multiprecision/tut/conversions.html
[2] https://www.boost.org/doc/libs/1_73_0/libs/multiprecision/doc/html/boost_multiprecision/ref/number.html
 
Regards,
Anton

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net