Skip to content

Commit bc353a4

Browse files
Constructor for dispatcher
1 parent dd4dada commit bc353a4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

include/jsonrpccxx/dispatcher.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ namespace jsonrpccxx {
1212

1313
class Dispatcher {
1414
public:
15+
Dispatcher() :
16+
methods(),
17+
notifications(),
18+
mapping() {}
19+
1520
bool Add(const std::string &name, MethodHandle callback, const NamedParamMapping &mapping = NAMED_PARAM_MAPPING) {
1621
if (contains(name))
1722
return false;
@@ -98,4 +103,4 @@ namespace jsonrpccxx {
98103
throw JsonRpcException(-32600, "invalid request: params field must be an array, object");
99104
}
100105
};
101-
} // namespace jsonrpccxx
106+
} // namespace jsonrpccxx

0 commit comments

Comments
 (0)