Skip to content

Commit

Permalink
Work around Clang 3.x failures
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Dec 22, 2024
1 parent 2630b3e commit df84f1f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/boost/variant2/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit df84f1f

Please sign in to comment.