Skip to content

Commit 12cc0c3

Browse files
committed
Fix link error in provide_prefix with some compilers
Serializing arrays require providing a zone to msgpack for it to be happy (sometimes).
1 parent 6e65060 commit 12cc0c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/provide_prefix.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ int main(int argc, char** argv)
127127
io.stop();
128128
return;
129129
}
130-
provide_future = session->provide(PREFIX, &calculator, { { "match", msgpack::object("prefix") } }).then(
130+
msgpack::zone z;
131+
provide_future = session->provide(PREFIX, &calculator, { { "match", msgpack::object("prefix", z) } }).then(
131132
[&](boost::future<autobahn::wamp_registration> registration) {
132133
try {
133134
std::cerr << "registered procedure:" << registration.get().id() << std::endl;

0 commit comments

Comments
 (0)