From 73ac3093bea13ec0e6d336108744b13fd32ef63a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 31 Jul 2021 18:06:47 +0100 Subject: ColumnDef constructor required only for Clang --- lib/output/pq/updateDatabase.cpp | 2 ++ lib/output/pq/updateDatabase.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'lib/output') diff --git a/lib/output/pq/updateDatabase.cpp b/lib/output/pq/updateDatabase.cpp index e5cd8d8..eb912d8 100644 --- a/lib/output/pq/updateDatabase.cpp +++ b/lib/output/pq/updateDatabase.cpp @@ -27,7 +27,9 @@ #include namespace MyGrate::Output::Pq { +#ifndef __cpp_aggregate_paren_init ColumnDef::ColumnDef(std::string n, std::size_t o, bool p) : name {std::move(n)}, ordinal(o), is_pk(p) { } +#endif UpdateDatabase::UpdateDatabase(const char * const str, uint64_t s) : UpdateDatabase {PqConn {str}, s} { } diff --git a/lib/output/pq/updateDatabase.h b/lib/output/pq/updateDatabase.h index 130e4a7..bc3a6bc 100644 --- a/lib/output/pq/updateDatabase.h +++ b/lib/output/pq/updateDatabase.h @@ -13,7 +13,9 @@ namespace MyGrate::Input { } namespace MyGrate::Output::Pq { struct ColumnDef { +#ifndef __cpp_aggregate_paren_init ColumnDef(std::string, std::size_t, bool); +#endif std::string name; std::size_t ordinal; -- cgit v1.2.3