Skip to content

Commit

Permalink
use a different workaround for non-default-constructible type list el…
Browse files Browse the repository at this point in the history
…ements

Suggested here: boostorg/mp11#23
  • Loading branch information
bernhardmgruber committed Mar 4, 2021
1 parent 8c25e97 commit a862c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/llama/Core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ namespace llama
std::size_t size = 0;
#endif
using FlatDD = FlattenDatumDomain<DatumStruct<DatumElements...>>;
mp_for_each<mp_iota<mp_size<FlatDD>>>([&](auto i) constexpr {
using T = mp_at<FlatDD, decltype(i)>;
mp_for_each<mp_transform<mp_identity, FlatDD>>([&](auto e) constexpr {
using T = typename decltype(e)::type;
internal::roundUpToMultiple(size, alignof(T));
size += sizeof(T);
});
Expand Down

0 comments on commit a862c79

Please sign in to comment.