summaryrefslogtreecommitdiff
path: root/c++/io_codec/rpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'c++/io_codec/rpc.h')
-rw-r--r--c++/io_codec/rpc.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/c++/io_codec/rpc.h b/c++/io_codec/rpc.h
index 67c4cec..34d6099 100644
--- a/c++/io_codec/rpc.h
+++ b/c++/io_codec/rpc.h
@@ -12,11 +12,12 @@ private:
public:
remote(std::string addr_str);
- conveyor<rpc_client<rmt::Network>> create_client();
+ template<typename Interface>
+ conveyor<rpc_client<rmt::Network, Interface>> create_client();
};
-template<>
-class rpc_client<rmt::Network> {
+template<template Interface>
+class rpc_client<rmt::Network, Interface> {
private:
own<io_stream> stream_;
public: