Skip to content

Commit

Permalink
minor debt correction
Browse files Browse the repository at this point in the history
  • Loading branch information
djmott committed Jul 2, 2016
1 parent e679f49 commit ddc24f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/xtd/rpc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ namespace xtd {
public:
using pointer_type = std::shared_ptr<invoker_base>;
using vector_type = std::vector<pointer_type>;
virtual ~invoker_base() = default;
virtual void invoke(payload_type&) = 0;
};

Expand All @@ -183,6 +184,7 @@ namespace xtd {
template <typename _ReturnT, typename ... _ArgTs>
class invoker : public invoker_base {
public:
virtual ~invoker() = default;
using handler_type = std::function<_ReturnT(_ArgTs...)>;
handler_type _Handler;
virtual void invoke(payload_type& oPayload) override {
Expand Down Expand Up @@ -255,6 +257,7 @@ namespace xtd {
public:
using client_type = null_transport;
template <typename ... _ArgTs> null_transport(_ArgTs&&...oArgs){}
virtual ~null_transport() = default;
virtual void start_server(){}
virtual void stop_server(){}
virtual void handle_client(client_type&& oClient){}
Expand Down Expand Up @@ -357,6 +360,7 @@ namespace xtd {

client() = delete;
client(const client&) = delete;
virtual ~client() = default;

template <typename _CallT, typename ... _CallArgsT>
typename _CallT::return_type call(_CallArgsT&&...oArgs) {
Expand Down

0 comments on commit ddc24f3

Please sign in to comment.