Skip to content
This repository was archived by the owner on Jun 15, 2025. It is now read-only.

Commit 27d9138

Browse files
committed
Fixed incorrect return value
1 parent a865a34 commit 27d9138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/spsl/stringbase.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class StringBase : public StringCore<StorageType>
229229
iterator insert(const_iterator pos, InputIt first, InputIt last)
230230
{
231231
m_storage.insert(pos - begin(), first, last);
232-
return begin() + index;
232+
return pos;
233233
}
234234
iterator insert(const_iterator pos, std::initializer_list<char_type> ilist)
235235
{

0 commit comments

Comments
 (0)