Skip to content

Commit

Permalink
Merge pull request #579 from Teebonne/patch-1
Browse files Browse the repository at this point in the history
Rebuild with string argument, like the constructor
  • Loading branch information
gummif authored Oct 10, 2022
2 parents 2aee6cd + 9fa9fbf commit d96155c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit d96155c

Please sign in to comment.