We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa0ed07 commit 66669daCopy full SHA for 66669da
src/netmessagemaker.h
@@ -15,19 +15,13 @@ class CNetMsgMaker
15
explicit CNetMsgMaker(int /*unused*/) {}
16
17
template <typename... Args>
18
- CSerializedNetMsg Make(int /*unused*/, std::string msg_type, Args&&... args) const
+ CSerializedNetMsg Make(std::string msg_type, Args&&... args) const
19
{
20
CSerializedNetMsg msg;
21
msg.m_type = std::move(msg_type);
22
VectorWriter{msg.data, 0, std::forward<Args>(args)...};
23
return msg;
24
}
25
-
26
- template <typename... Args>
27
- CSerializedNetMsg Make(std::string msg_type, Args&&... args) const
28
- {
29
- return Make(0, std::move(msg_type), std::forward<Args>(args)...);
30
- }
31
};
32
33
#endif // BITCOIN_NETMESSAGEMAKER_H
0 commit comments