aboutsummaryrefslogtreecommitdiffstats
path: root/libyul/YulString.h
diff options
context:
space:
mode:
Diffstat (limited to 'libyul/YulString.h')
-rw-r--r--libyul/YulString.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libyul/YulString.h b/libyul/YulString.h
index 2179c23b..35c1d92d 100644
--- a/libyul/YulString.h
+++ b/libyul/YulString.h
@@ -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));
+}
+
}