aboutsummaryrefslogtreecommitdiff
path: root/include/openvic-dataloader/detail/VectorConstexpr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/openvic-dataloader/detail/VectorConstexpr.hpp')
-rw-r--r--include/openvic-dataloader/detail/VectorConstexpr.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/openvic-dataloader/detail/VectorConstexpr.hpp b/include/openvic-dataloader/detail/VectorConstexpr.hpp
new file mode 100644
index 0000000..7e7fa34
--- /dev/null
+++ b/include/openvic-dataloader/detail/VectorConstexpr.hpp
@@ -0,0 +1,9 @@
+#pragma once
+
+// THANK YOU APPLE FOR YOUR UTTER DISREGARD FOR C++20
+
+#if __cpp_lib_constexpr_vector >= 201907L
+#define OVDL_VECTOR_CONSTEXPR constexpr
+#else
+#define OVDL_VECTOR_CONSTEXPR inline
+#endif \ No newline at end of file