summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/mysql_types.h3
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;
};