Skip to content

Commit

Permalink
api: fix c++14 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 27, 2024
1 parent 48739fe commit d89de05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/str.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace jule

__JULE_INLINE_BEFORE_CPP20 __JULE_CONSTEXPR_SINCE_CPP20 Iterator begin(void) noexcept
{
return static_cast<Iterator>(this->buffer.data());
return const_cast<Iterator>(this->buffer.data());
}

__JULE_INLINE_BEFORE_CPP20 __JULE_CONSTEXPR_SINCE_CPP20 ConstIterator begin(void) const noexcept
Expand Down

0 comments on commit d89de05

Please sign in to comment.