summaryrefslogtreecommitdiffhomepage
path: root/compat/map.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-07 23:38:31 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-08 08:43:49 +0100
commita6514d1a95d0f84f0935866215463ef6aed23e19 (patch)
tree639075646b1ea42a3cd4a76ae59af7dda0c4b14a /compat/map.hpp
parent4575194adb4615deeca174044a872093c3664ad4 (diff)
loader: work toward removing duplicate atlas code
Diffstat (limited to 'compat/map.hpp')
-rw-r--r--compat/map.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/map.hpp b/compat/map.hpp
index 3c1610d4..860b4d77 100644
--- a/compat/map.hpp
+++ b/compat/map.hpp
@@ -32,7 +32,7 @@ constexpr auto map(const F& fun, const std::array<T, N>& array)
using return_type = std::decay_t<decltype( fun(array[0]) )>;
static_assert(!std::is_same_v<return_type, void>);
static_assert(std::is_same_v<T, std::decay_t<T>>);
- static_assert(sizeof(return_type) > 0);
+ static_assert(sizeof(return_type));
using ::floormat::detail::map::map0;
return map0(fun, array, std::make_index_sequence<N>{});
}