diff options
author | George L. Albany <Megacake1234@gmail.com> | 2023-09-02 22:21:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 22:21:08 +0200 |
commit | f55e1fc6090854dab49f994c41644a6cd86a5d44 (patch) | |
tree | 288a1530b1f3cd2d7ba2bb5821e2c4160725707c /include/openvic-dataloader/detail | |
parent | f990117e56060811ddd2a850ec712485aea79649 (diff) | |
parent | dbc66788a680daf3f8a1c0c6e7fbd1b77cc06864 (diff) |
Merge pull request #8 from OpenVicProject/add-workflow-build
Diffstat (limited to 'include/openvic-dataloader/detail')
-rw-r--r-- | include/openvic-dataloader/detail/OptionalConstexpr.hpp | 9 | ||||
-rw-r--r-- | include/openvic-dataloader/detail/VectorConstexpr.hpp | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/openvic-dataloader/detail/OptionalConstexpr.hpp b/include/openvic-dataloader/detail/OptionalConstexpr.hpp new file mode 100644 index 0000000..bcb12a7 --- /dev/null +++ b/include/openvic-dataloader/detail/OptionalConstexpr.hpp @@ -0,0 +1,9 @@ +#pragma once + +// THANK YOU APPLE FOR YOUR UTTER DISREGARD FOR C++20 + +#if __cpp_lib_optional >= 202106L +#define OVDL_OPTIONAL_CONSTEXPR constexpr +#else +#define OVDL_OPTIONAL_CONSTEXPR inline +#endif
\ No newline at end of file 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 |