From 256d8a699a79f4fd2d9e8e54ff4011f0a5ea190d Mon Sep 17 00:00:00 2001 From: "florent.teppe" Date: Sat, 10 Sep 2022 20:13:18 +0200 Subject: [PATCH] moves one function from tuplemeta.hpp to newly created tuplehelpers.hpp --- apps/openmw/mwworld/cellstore.cpp | 1 + components/CMakeLists.txt | 2 +- components/misc/tuplemeta.hpp | 6 ------ 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/openmw/mwworld/cellstore.cpp b/apps/openmw/mwworld/cellstore.cpp index cab0606bfe..9117e40de0 100644 --- a/apps/openmw/mwworld/cellstore.cpp +++ b/apps/openmw/mwworld/cellstore.cpp @@ -5,6 +5,7 @@ #include +#include #include #include #include diff --git a/components/CMakeLists.txt b/components/CMakeLists.txt index 9dc752e4aa..f418fe669c 100644 --- a/components/CMakeLists.txt +++ b/components/CMakeLists.txt @@ -197,7 +197,7 @@ add_component_dir (esm4 add_component_dir (misc constants utf8stream resourcehelpers rng messageformatparser weakcache thread - compression osguservalues errorMarker color + compression osguservalues errorMarker color tuplemeta tuplehelpers ) add_component_dir (stereo diff --git a/components/misc/tuplemeta.hpp b/components/misc/tuplemeta.hpp index af92066959..fda6fb32e3 100644 --- a/components/misc/tuplemeta.hpp +++ b/components/misc/tuplemeta.hpp @@ -30,12 +30,6 @@ namespace Misc { static constexpr std::size_t value = 1 + TupleTypeIndex>::value; }; - - template - void tupleForEach(TupleType& tuple, Callable&& f) - { - std::apply([&f](auto& ...x) {(f(x), ...); }, tuple); - } } #endif