Merge pull request #579 from Teebonne/patch-1

Rebuild with string argument, like the constructor
This commit is contained in:
Gudmundur Adalsteinsson 2022-10-10 21:01:16 +00:00 committed by GitHub
commit d96155cbc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -538,6 +538,11 @@ class message_t
throw error_t();
memcpy(data(), data_, size_);
}
void rebuild(const std::string &str)
{
rebuild(str.data(), str.size());
}
void rebuild(void *data_, size_t size_, free_fn *ffn_, void *hint_ = ZMQ_NULLPTR)
{