Skip to content

Commit

Permalink
fix: reinterpret_cast is not constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Jan 30, 2024
1 parent f93d32e commit 1121690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/str.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ namespace jule
return this->buffer.empty();
}

constexpr operator char *(void) const noexcept
operator char *(void) const noexcept
{
return const_cast<char *>(reinterpret_cast<const char *>(this->buffer.c_str()));
}

constexpr operator const char *(void) const noexcept
operator const char *(void) const noexcept
{
return reinterpret_cast<const char *>(this->buffer.c_str());
}
Expand Down

0 comments on commit 1121690

Please sign in to comment.