Boost logo

Boost Users :

From: Stefano Gragnani (stefano.gragnani_at_[hidden])
Date: 2021-07-21 17:48:05


I solved for the other example, I must add:

#include <boost/cstdfloat.hpp> // For float_64_t, float128_t. Must be first include!

Thank you so much

> Il giorno 21 lug 2021, alle ore 18:48, John Maddock via Boost-users <boost-users_at_[hidden]> ha scritto:
>
> On 21/07/2021 16:56, Stefano Gragnani via Boost-users wrote:
>> ok things are better but i still get errors:
>>
>> > Executing task: g++-11 -g -I/usr/local/Cellar/boost/1.76.0/include/ -I/usr/local/include/ -L/usr/local/Cellar/boost/1.76.0/lib/ -L/usr/local/Cellar/gcc/11.1.0_1/lib/gcc/11/ -L/usr/local/Cellar/gmp/6.2.1/lib/ -L/usr/local/Cellar/mpfr/4.1.0/lib/ -std=gnu++20 -lmpfr -lgmp -lquadmath -lboost_system -lboost_filesystem '-fext-numeric-literals' float128_example.cpp -o main <
>>
>> float128_example.cpp: In function 'int main()':
>> float128_example.cpp:186:20: error: call of overloaded 'exp(__float128)' is ambiguous
>> 186 | float128 e1 = exp(1.Q); // Note argument to exp is type float128.
>> | ~~~^~~~~
>
> The compiler is quite correct: there are no std lib functions for the built in type __float128, there are however for boost::multiprecision::float128 which is the type you should be using throughout.
>
>
>
> --
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users



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