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@lists.boost.org <mailto:boost-users@lists.boost.org>> 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@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users