summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-08-22 19:46:04 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-08-22 19:46:04 +0100
commita4c6328efab2e614a46b4a1c78fb0c5678c3fd76 (patch)
tree2181e2e0da639d30fd1252312386f6904b1f5a6c
parentReplace deprecated typedef std::hash<...>::result_type (diff)
downloadlibdbpp-postgresql-a4c6328efab2e614a46b4a1c78fb0c5678c3fd76.tar.bz2
libdbpp-postgresql-a4c6328efab2e614a46b4a1c78fb0c5678c3fd76.tar.xz
libdbpp-postgresql-a4c6328efab2e614a46b4a1c78fb0c5678c3fd76.zip
Switch to structured binding interfacelibdbpp-postgresql-1.3.0
-rw-r--r--libpqpp/pq-mock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpqpp/pq-mock.cpp b/libpqpp/pq-mock.cpp
index 6cc114f..c563bb2 100644
--- a/libpqpp/pq-mock.cpp
+++ b/libpqpp/pq-mock.cpp
@@ -51,8 +51,8 @@ ORDER BY 1, 2)SQL");
unsigned int n = 0;
do {
n = 0;
- for (const auto & t : s->as<std::string, std::string>()) {
- c->execute(MockSetUnlogged::get(t.value<0>(), t.value<1>()));
+ for (const auto [ nspname, relname ] : s->as<std::string, std::string>()) {
+ c->execute(MockSetUnlogged::get(nspname, relname));
n += 1;
}
} while(n);