diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-09 15:29:21 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-11-09 15:30:04 +0100 |
commit | 48b53a8bd67556ede6b50bae29edd0c3d515c957 (patch) | |
tree | 68cbe47d0c83ed285907ba7dbf66b68f810c8170 /c++ | |
parent | e0a352216cb2ebc331215f15df70306b8c203a2c (diff) |
io_codec: minor idea changes adding later
Diffstat (limited to 'c++')
-rw-r--r-- | c++/io_codec/rpc.h | 7 |
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: |