explicitly defined constructors

This commit is contained in:
Yuriy 2019-04-07 15:33:06 +03:00
parent 5b6754a2be
commit 1dc5c4cba3

View File

@ -301,6 +301,10 @@ public:
String database;
String auth_plugin_name;
HandshakeResponse() = default;
HandshakeResponse(const HandshakeResponse &) = default;
void readPayload(String s) override
{
std::istringstream ss(s);
@ -368,6 +372,10 @@ class NullTerminatedString : public ReadPacket
public:
String value;
NullTerminatedString() = default;
NullTerminatedString(const NullTerminatedString &) = default;
void readPayload(String s) override
{
if (s.length() == 0 || s.back() != 0)
@ -542,6 +550,10 @@ class ComFieldList : public ReadPacket
public:
String table, field_wildcard;
ComFieldList() = default;
ComFieldList(const ComFieldList &) = default;
void readPayload(String payload)
{
std::istringstream ss(payload);