Skip to content

Commit 7d1dfa3

Browse files
Merge pull request #15904 from Ferran969/improve-yulname-literal
Replace temporary std::string with std::string_view in _yulname literal
2 parents 687ad65 + 10b21b8 commit 7d1dfa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libyul/YulString.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class YulString
165165

166166
inline YulString operator "" _yulname(char const* _string, std::size_t _size)
167167
{
168-
return YulString(std::string(_string, _size));
168+
return YulString(std::string_view(_string, _size));
169169
}
170170

171171
}

0 commit comments

Comments
 (0)