We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9a3db5 commit 69ef8e8Copy full SHA for 69ef8e8
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