From dbc66788a680daf3f8a1c0c6e7fbd1b77cc06864 Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Sat, 2 Sep 2023 09:03:14 -0400 Subject: Add github actions and workflow --- include/openvic-dataloader/detail/VectorConstexpr.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/openvic-dataloader/detail/VectorConstexpr.hpp (limited to 'include/openvic-dataloader/detail/VectorConstexpr.hpp') 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 -- cgit v1.2.3-56-ga3b1