ecorm / cppwamp

C++ client library for the WAMP protocol.
Boost Software License 1.0
35 stars 9 forks source link

Make it harder to forget yielding a result from within RPC handlers #46

Closed ecorm closed 9 years ago

ecorm commented 9 years ago

It's currently too easy to forget to issue an Invocation::yield from within RPC handlers. It should be changed so that the RPC handler is forced to return one of the following:

A discriminated union type could be used to contain those three variants, without incurring the cost of dynamic allocation if polymorphism was used instead.