Use C++ user-defined literals for creating YulString constants.

This commit is contained in:
Daniel Kirchner
2018-12-12 18:45:43 +01:00
parent e85c3428b4
commit 5ac7620045
8 changed files with 18 additions and 13 deletions
+5
View File
@@ -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));
}
}