On 9/04/2021 9:45 am, Edward Diener wrote:
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
To resolve that, use static_cast<__int128>(56) instead, or assign an
__int128 variable instead of an integer constant.
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users