From a4c6328efab2e614a46b4a1c78fb0c5678c3fd76 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 22 Aug 2018 19:46:04 +0100 Subject: Switch to structured binding interface --- libpqpp/pq-mock.cpp | 4 ++-- 1 file 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()) { - c->execute(MockSetUnlogged::get(t.value<0>(), t.value<1>())); + for (const auto [ nspname, relname ] : s->as()) { + c->execute(MockSetUnlogged::get(nspname, relname)); n += 1; } } while(n); -- cgit v1.2.3