Skip to content

Commit

Permalink
Merge pull request #68 from vil02/reinterpret_cast_is_not_const_expr
Browse files Browse the repository at this point in the history
fix: `reinterpret_cast` is not `constexpr`
  • Loading branch information
mertcandav authored Jan 30, 2024
2 parents f93d32e + 1121690 commit dbb30d4
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 dbb30d4

Please sign in to comment.