summaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-02-15 14:46:48 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-02-15 14:46:48 +0000
commit619983e949fde226cc7a3de0bc198fdcee3fe3b4 (patch)
tree4599b5c8440d6ae80d03a3d87985053a5c104670 /lib/util.h
parentRange adaptor to make triangle strip triples (diff)
downloadilt-619983e949fde226cc7a3de0bc198fdcee3fe3b4.tar.bz2
ilt-619983e949fde226cc7a3de0bc198fdcee3fe3b4.tar.xz
ilt-619983e949fde226cc7a3de0bc198fdcee3fe3b4.zip
Fixes and tests to new range helpers
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/util.h b/lib/util.h
index 2674eaf..cd7971b 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -29,7 +29,7 @@ namespace {
};
}
-template<size_t... N> constexpr auto Nth = GetNth<N...> {};
-constexpr auto GetFirst = Nth<0>;
-constexpr auto GetSecond = Nth<1>;
-constexpr auto GetSwapped = Nth<0, 1>;
+template<size_t... N> inline constexpr auto Nth = GetNth<N...> {};
+inline constexpr auto GetFirst = Nth<0>;
+inline constexpr auto GetSecond = Nth<1>;
+inline constexpr auto GetSwapped = Nth<0, 1>;