summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-13 06:16:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-13 06:16:07 +0100
commitd87c0cb28720610ca7483f2d8de0613f583dc354 (patch)
treecdbb9549eadf984d68769944dcca219349bef842 /compat
parent379f5bbe121b224733dc9f8fea2aa0b012536ea2 (diff)
a
Diffstat (limited to 'compat')
-rw-r--r--compat/map.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/map.hpp b/compat/map.hpp
index 3c1610d4..7983a805 100644
--- a/compat/map.hpp
+++ b/compat/map.hpp
@@ -14,6 +14,11 @@ constexpr auto map0(const F& fun, const std::array<T, N>& array, std::index_sequ
return std::array { fun(array[Indexes])... };
}
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable : 4996)
+#endif
+
template<typename T, typename F>
[[deprecated("zero-length array!")]]
CORRADE_ALWAYS_INLINE
@@ -22,6 +27,10 @@ constexpr auto map0(const F&, const std::array<T, 0>&, std::index_sequence<>)
return std::array<std::decay_t<std::invoke_result_t<std::decay_t<F>, const std::remove_cvref_t<T>&>>, 0>{};
}
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
} // namespace floormat::detail::map
namespace floormat {