Re: [Boost-users] does boost::variant support 128 bit integer?

2021-04-07 Thread Anil Muthigi via Boost-users
I dont think so... I guess int128_t under boost/multiprecision/cpp_int is the only viable option. On Wed, 7 Apr 2021, 11:39 pm David Frank via Boost-users, < boost-users@lists.boost.org> wrote: > especially the gnu __int128? > Thanks, > David. > ___ > B

Re: [Boost-users] does boost::variant support 128 bit integer?

2021-04-07 Thread Anil Muthigi via Boost-users
. { 7. boost::variant<__int128, char, std::string> v; 8. v = 56; 9. v = 'Y'; 10. __int128 d=12; 11. std::cout < wrote: > On 4/7/2021 2:15 PM, Anil Muthigi via Boost-users wrote: > > I dont think so... > > If it is available why do you think variant wo

Re: [Boost-users] does boost::variant support 128 bit integer?

2021-04-07 Thread Anil Muthigi via Boost-users
uot;Yashaswi raj"; > > 14. > > std::cout << v << '\n'; > > 15. > > } > > > > If u replace __int128 with int in the variant variable, it seems to work > > just fine... > > My test with gcc-10.2 and clang-linu

Re: [Boost-users] does boost::variant support 128 bit integer?

2021-04-07 Thread Anil Muthigi via Boost-users
amp; o, const __int128& x) functionality. I > tried putting your functionality in namespace boost but it still did not pick > it up. > >>> >>> On Thu, 8 Apr 2021, 04:30 Edward Diener via Boost-users, >>> mailto:boost-users@lists.boost.org>> wrote: >>>

Re: [Boost-users] does boost::variant support 128 bit integer?

2021-04-07 Thread Anil Muthigi via Boost-users
return o << (char)(x + '0'); return o << x / 10 << (char)(x % 10 > + '0'); } > int main() > { > boost::variant<__int128, char, std::string> v; > v = 56; > v = 'Y'; > __int128 d=12; > std::cout < std::cout <<

Re: [Boost-users] Multiprecision

2021-04-09 Thread Anil Muthigi via Boost-users
Me too On Fri, 9 Apr 2021, 20:04 shady mohamed via Boost-users, < boost-users@lists.boost.org> wrote: > I need to talk with mentor of this project to discuss the competency test > ___ > Boost-users mailing list > Boost-users@lists.boost.org > https://li