This commit is contained in:
Hans Dembinski
2018-09-16 00:06:33 +02:00
parent 60f351b688
commit 1d99bc93ee

View File

@@ -88,7 +88,8 @@ struct adaptive_storage {
}
template <typename T>
using next_type = mp11::mp_at_c<types, (adaptive_storage::type_index<T>() + 1)>;
using next_type = mp11::mp_at_c<types,
(adaptive_storage::type_index<T>() == 5 ? 5 : adaptive_storage::type_index<T>() + 1)>;
struct buffer_type {
allocator_type alloc;