std::vector<std::string> to msgpack::object ?


Effectively converting a msgpack::object to a std::vectorstd::string at the receiving end is easy:

using StringVec = std::vectorstd::string;
StringVec dirs = invocation->kw_argument_or(“dirs”, StringVec());

But how do I send that from the other end? How do I convert a StringVec into a msgpack::object?

StringVec dirs = { ‘/var/tmp’, ‘/var/log’};
autobahn::wamp_kw_arguments kw;
kw[“dirs”] = dirs;

Does not compile.

In the msgpack headers I see a convert() routine, but that seems to convert from the object to instead of the other way around.

Any help would be greatly appreciated.