diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-31 18:06:47 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-31 18:06:47 +0100 |
commit | 73ac3093bea13ec0e6d336108744b13fd32ef63a (patch) | |
tree | ac688e7a6940d4ee80fe564c90c6dc7be46c0edc /lib/output | |
parent | Subclass UpdateDatabase to wait for N operations to be completed (diff) | |
download | mygrate-73ac3093bea13ec0e6d336108744b13fd32ef63a.tar.bz2 mygrate-73ac3093bea13ec0e6d336108744b13fd32ef63a.tar.xz mygrate-73ac3093bea13ec0e6d336108744b13fd32ef63a.zip |
ColumnDef constructor required only for Clang
Diffstat (limited to 'lib/output')
-rw-r--r-- | lib/output/pq/updateDatabase.cpp | 2 | ||||
-rw-r--r-- | lib/output/pq/updateDatabase.h | 2 |
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; |