From d4ee583a95df2f8c1bccfa3d57550a64ea66da38 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Thu, 22 Jun 2023 16:55:47 +0200 Subject: [PATCH] Fix ambiguous conversion to boost::uint128_type --- include/boost/charconv/detail/emulated128.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/charconv/detail/emulated128.hpp b/include/boost/charconv/detail/emulated128.hpp index e4112dd..9fbf0f8 100644 --- a/include/boost/charconv/detail/emulated128.hpp +++ b/include/boost/charconv/detail/emulated128.hpp @@ -71,11 +71,11 @@ struct uint128 UNSIGNED_CONSTRUCTOR(unsigned long long) #ifdef BOOST_CHARCONV_HAS_INT128 - explicit constexpr uint128(boost::int128_type v) noexcept : + constexpr uint128(boost::int128_type v) noexcept : high {static_cast(v >> 64)}, low {static_cast(static_cast(v) & ~UINT64_C(0))} {} - explicit constexpr uint128(boost::uint128_type v) noexcept : + constexpr uint128(boost::uint128_type v) noexcept : high {static_cast(v >> 64)}, low {static_cast(v & ~UINT64_C(0))} {} #endif