diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-05 20:43:23 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-05 20:53:13 +0100 |
commit | cd5ab761e5a0db0475a20a37566a0175f91d9129 (patch) | |
tree | 321f0e63eb5a6418be0f1ca14c4b5b9c1948c1ca /lib/output/pq | |
parent | Add missing braces (diff) | |
download | mygrate-cd5ab761e5a0db0475a20a37566a0175f91d9129.tar.bz2 mygrate-cd5ab761e5a0db0475a20a37566a0175f91d9129.tar.xz mygrate-cd5ab761e5a0db0475a20a37566a0175f91d9129.zip |
Prevent move and copy of WritePqCopyStream
Diffstat (limited to 'lib/output/pq')
-rw-r--r-- | lib/output/pq/updateDatabase.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/output/pq/updateDatabase.cpp b/lib/output/pq/updateDatabase.cpp index b8e27ba..1dab95e 100644 --- a/lib/output/pq/updateDatabase.cpp +++ b/lib/output/pq/updateDatabase.cpp @@ -98,6 +98,12 @@ namespace MyGrate::Output::Pq { } struct WritePqCopyStream { + explicit WritePqCopyStream(FILE * o) : out {o} { } + WritePqCopyStream(const WritePqCopyStream &) = delete; + WritePqCopyStream(WritePqCopyStream &&) = delete; + WritePqCopyStream & operator=(const WritePqCopyStream &) = delete; + WritePqCopyStream & operator=(WritePqCopyStream &&) = delete; + ~WritePqCopyStream() { fputc('\n', out); |