Skip to content

Invalid assignments from std::string to msgpack::object #417

@davidchappelle

Description

@davidchappelle

The following code compiles but for obvious reasons is incorrect due to the lack of a zone to properly allocate storage for the string.

#include <msgpack.hpp>
#include <string>

msgpack::object obj;

void set_procedure(const std::string procedure)
{
    obj = procedure;
}

int main(int argc, char** argv)
{
    set_procedure("foo");
    return 0;
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions