|
Boost Users : |
From: Edward Diener (eldiener_at_[hidden])
Date: 2021-04-08 21:45:50
On 4/8/2021 2:16 PM, Felipe Magno de Almeida via Boost-users wrote:
> Hello Anil,
>
>
> On Wed, Apr 7, 2021 at 11:43 PM Anil Muthigi via Boost-users
> <boost-users_at_[hidden] <mailto:boost-users_at_[hidden]>> wrote:
>
> On running the code given below which uses int for variant variable
> but uses __int128 for the variable d having value 12... I get the
> following output =
>
>
> You must define your operator<< in namespace std so it can be picked by ADL.
If you just have:
#include <boost/variant.hpp>
#include <string>
boost::variant<__int128, char, std::string> v;
v = 56;
This produces an error:
..\..\../boost/variant/variant.hpp:1578:38: error: call of overloaded
'initialize(void*, boost::move_detail::remove_reference<int&>::type)' is
ambiguous
>
> Kind regards,
>
> PS: Do not use images to show code. Just write them in your email body.
> [snip - images]
>
> --
> Felipe Magno de Almeida
> Owner @ Expertise Solutions
> www: https://expertise.dev <https://expertise.dev>
> phone: +55 48 9 9681.0157
> LinkedIn: in/felipealmeida
>
> _______________________________________________
> 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