summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-07-31 18:06:47 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-07-31 18:06:47 +0100
commit73ac3093bea13ec0e6d336108744b13fd32ef63a (patch)
treeac688e7a6940d4ee80fe564c90c6dc7be46c0edc /lib
parentSubclass UpdateDatabase to wait for N operations to be completed (diff)
downloadmygrate-73ac3093bea13ec0e6d336108744b13fd32ef63a.tar.bz2
mygrate-73ac3093bea13ec0e6d336108744b13fd32ef63a.tar.xz
mygrate-73ac3093bea13ec0e6d336108744b13fd32ef63a.zip
ColumnDef constructor required only for Clang
Diffstat (limited to 'lib')
-rw-r--r--lib/output/pq/updateDatabase.cpp2
-rw-r--r--lib/output/pq/updateDatabase.h2
2 files changed, 4 insertions, 0 deletions
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 <streamSupport.h>
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;