Work around Clang 3.x failures

This commit is contained in:
Peter Dimov
2024-12-22 20:10:16 +02:00
parent 2630b3e572
commit df84f1f146

View File

@ -856,8 +856,16 @@ template<std::size_t N> using get_smallest_unsigned_type = mp11::mp_cond<
>;
#if BOOST_WORKAROUND( BOOST_CLANG_VERSION, < 30800 )
template<bool Double, class... T> using get_index_type = unsigned short;
#else
template<bool Double, class... T> using get_index_type = get_smallest_unsigned_type< (Double + 1) * sizeof...(T) >;
#endif
// variant_base
template<bool is_trivially_destructible, bool is_single_buffered, class... T> struct variant_base_impl;