From ac5e93b856cfc5bfda8d41372c792576fa9dade1 Mon Sep 17 00:00:00 2001 From: Frank Park Date: Tue, 11 Apr 2017 01:09:15 -0400 Subject: [PATCH] Improve interface --- include/sqlpp11/connection_pool.h | 6 ++++++ include/sqlpp11/pool_connection.h | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/sqlpp11/connection_pool.h b/include/sqlpp11/connection_pool.h index 805d6246..11eaf0c7 100644 --- a/include/sqlpp11/connection_pool.h +++ b/include/sqlpp11/connection_pool.h @@ -215,6 +215,12 @@ namespace sqlpp { query_task(*this, query, callback)(); } + + template + void operator()(Query query) + { + operator()(query, [](){}); + } }; templateprepare(t); } - Connection* operator->() - { - return &_impl; - } - pool_connection(const pool_connection&) = delete; pool_connection(pool_connection&& other) : _impl(std::move(other._impl)), origin(other.origin) {}