|
Boost Users : |
From: Gavin Lambert (boost_at_[hidden])
Date: 2021-04-08 22:05:32
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 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