summaryrefslogtreecommitdiff
path: root/include/fud_status.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/fud_status.hpp')
-rw-r--r--include/fud_status.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/fud_status.hpp b/include/fud_status.hpp
index 6a9d653..f8f7687 100644
--- a/include/fud_status.hpp
+++ b/include/fud_status.hpp
@@ -42,7 +42,7 @@ enum class [[nodiscard]] FudStatus
NotSupported
};
-static inline const char* FudStatusToString(FudStatus status)
+constexpr const char* FudStatusToString(FudStatus status)
{
switch (status) {
case FudStatus::Success:
@@ -86,19 +86,19 @@ static inline const char* FudStatusToString(FudStatus status)
}
}
-static inline bool anyAreNull()
+constexpr bool anyAreNull()
{
return false;
}
template <typename T>
-bool anyAreNull(const T* pointer)
+constexpr bool anyAreNull(const T* pointer)
{
return pointer == nullptr;
}
template <typename T, typename... Ts>
-bool anyAreNull(T pointer, Ts... pointers)
+constexpr bool anyAreNull(T pointer, Ts... pointers)
{
if (pointer == nullptr) {
return true;