mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use C++ user-defined literals for creating YulString constants.
This commit is contained in:
@@ -127,4 +127,9 @@ private:
|
||||
YulStringRepository::Handle m_handle{ 0, YulStringRepository::emptyHash() };
|
||||
};
|
||||
|
||||
inline YulString operator "" _yulstring(const char *_string, std::size_t _size)
|
||||
{
|
||||
return YulString(std::string(_string, _size));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user