#ifndef OPENMW_COMPONENTS_ESM_DECOMPOSE_H #define OPENMW_COMPONENTS_ESM_DECOMPOSE_H namespace ESM { template void decompose(T&& value, const auto& apply) = delete; std::size_t getCompositeSize(const auto& value) { std::size_t result = 0; decompose(value, [&](const auto&... args) { result = (0 + ... + sizeof(args)); }); return result; } } #endif