aboutsummaryrefslogtreecommitdiff
path: root/include/openvic-dataloader/detail/OptionalConstexpr.hpp
blob: bcb12a78fdde8ef522a4a8e1d02f3f13550b1c91 (plain) (blame)
1
2
3
4
5
6
7
8
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