diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-31 17:03:32 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-31 17:03:32 +0100 |
commit | 6bc02059659da8da0fcd447d95cbc916de2e668b (patch) | |
tree | c9551af88d6d2751a981537074b0a91c28b9391c | |
parent | Copy table content in a TX as part of add table (diff) | |
download | mygrate-6bc02059659da8da0fcd447d95cbc916de2e668b.tar.bz2 mygrate-6bc02059659da8da0fcd447d95cbc916de2e668b.tar.xz mygrate-6bc02059659da8da0fcd447d95cbc916de2e668b.zip |
ReplicationPosition constructor required for Clang
-rw-r--r-- | lib/mysql_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mysql_types.h b/lib/mysql_types.h index d99e5a6..b3a1a85 100644 --- a/lib/mysql_types.h +++ b/lib/mysql_types.h @@ -82,6 +82,9 @@ namespace MyGrate { #undef DEFINE_TYPE struct ReplicationPosition { +#ifndef __cpp_aggregate_paren_init + ReplicationPosition(std::string f, uint64_t p) : filename {std::move(f)}, position {p} { } +#endif std::string filename; uint64_t position; }; |