From 1121690fc332aa1c14030955803de65e2fc68d30 Mon Sep 17 00:00:00 2001 From: vil02 Date: Tue, 30 Jan 2024 22:08:49 +0100 Subject: [PATCH] fix: `reinterpret_cast` is not `constexpr` --- api/str.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/str.hpp b/api/str.hpp index 1ca10267c..766fca4ae 100644 --- a/api/str.hpp +++ b/api/str.hpp @@ -146,12 +146,12 @@ namespace jule return this->buffer.empty(); } - constexpr operator char *(void) const noexcept + operator char *(void) const noexcept { return const_cast(reinterpret_cast(this->buffer.c_str())); } - constexpr operator const char *(void) const noexcept + operator const char *(void) const noexcept { return reinterpret_cast(this->buffer.c_str()); }