Skip to content

Commit 453e5e4

Browse files
committed
Adjust indent and move class definition closer for better readability
1 parent 17b3302 commit 453e5e4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/wrapper.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@ using namespace RpcUtils::detail;
1010
#include <stdexcept>
1111
#endif
1212

13+
class IFunctionWrapper {
14+
public:
15+
virtual ~IFunctionWrapper() {}
16+
virtual bool operator()(MsgPack::Unpacker& unpacker, MsgPack::Packer& packer) = 0;
17+
};
1318

1419
template<typename F>
1520
class RpcFunctionWrapper;
1621

17-
class IFunctionWrapper {
18-
public:
19-
virtual ~IFunctionWrapper() {}
20-
virtual bool operator()(MsgPack::Unpacker& unpacker, MsgPack::Packer& packer) = 0;
21-
};
22-
2322
template<typename R, typename... Args>
2423
class RpcFunctionWrapper<std::function<R(Args...)>>: public IFunctionWrapper {
2524
public:

0 commit comments

Comments
 (0)