From 6bc02059659da8da0fcd447d95cbc916de2e668b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 31 Jul 2021 17:03:32 +0100 Subject: ReplicationPosition constructor required for Clang --- lib/mysql_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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; }; -- cgit v1.2.3