moves one function from tuplemeta.hpp to newly created tuplehelpers.hpp

crashfix_debugdraw
florent.teppe 2 years ago
parent 73e3c0adf6
commit 256d8a699a

@ -5,6 +5,7 @@
#include <components/debug/debuglog.hpp>
#include <components/misc/tuplehelpers.hpp>
#include <components/esm3/cellstate.hpp>
#include <components/esm3/cellid.hpp>
#include <components/esm3/cellref.hpp>

@ -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

@ -30,12 +30,6 @@ namespace Misc
{
static constexpr std::size_t value = 1 + TupleTypeIndex<T, std::tuple<Types...>>::value;
};
template<typename TupleType, typename Callable>
void tupleForEach(TupleType& tuple, Callable&& f)
{
std::apply([&f](auto& ...x) {(f(x), ...); }, tuple);
}
}
#endif

Loading…
Cancel
Save