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;
}