remove RpcSerializer
parent
40170d553d
commit
6cc64fa6a3
@ -1,21 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
class RpcSerializer {
|
|
||||||
public:
|
|
||||||
template<typename T>
|
|
||||||
static void write(std::ostringstream& out, const T& v) {
|
|
||||||
out << v << ' ';
|
|
||||||
}
|
|
||||||
|
|
||||||
template<typename T>
|
|
||||||
static T read(std::istringstream& in) {
|
|
||||||
T v;
|
|
||||||
in >> v;
|
|
||||||
return v;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue