We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72a53d5 commit df6ca30Copy full SHA for df6ca30
1 file changed
DataFormats/Headers/include/Headers/DataHeader.h
@@ -273,6 +273,12 @@ struct Descriptor {
273
}
274
275
276
+ /// compatibility version for null-terminated strings
277
+ void runtimeInit(const char* string)
278
+ {
279
+ runtimeInit(std::string_view{string, std::strlen(string)});
280
+ }
281
+
282
bool operator==(const Descriptor& other) const { return std::memcmp(this->str, other.str, N) == 0; }
283
bool operator<(const Descriptor& other) const { return std::memcmp(this->str, other.str, N) < 0; }
284
bool operator!=(const Descriptor& other) const { return not this->operator==(other); }
0 commit comments