From a862c79bd90594648c2e187be17fbb70a6429fb2 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Thu, 4 Mar 2021 12:55:57 +0100 Subject: [PATCH] use a different workaround for non-default-constructible type list elements Suggested here: https://github.com/boostorg/mp11/issues/23 --- include/llama/Core.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llama/Core.hpp b/include/llama/Core.hpp index 5493e197dc..77515056f6 100644 --- a/include/llama/Core.hpp +++ b/include/llama/Core.hpp @@ -383,8 +383,8 @@ namespace llama std::size_t size = 0; #endif using FlatDD = FlattenDatumDomain>; - mp_for_each>>([&](auto i) constexpr { - using T = mp_at; + mp_for_each>([&](auto e) constexpr { + using T = typename decltype(e)::type; internal::roundUpToMultiple(size, alignof(T)); size += sizeof(T); });