From 73df6df867d3f4d0657c1262fb9ecada7b22684a Mon Sep 17 00:00:00 2001 From: MacDue Date: Tue, 14 Jan 2020 12:50:53 +0000 Subject: [PATCH] Make connection pool useable --- include/sqlpp11/connection_pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sqlpp11/connection_pool.h b/include/sqlpp11/connection_pool.h index c63141ba..14e4e81b 100644 --- a/include/sqlpp11/connection_pool.h +++ b/include/sqlpp11/connection_pool.h @@ -183,7 +183,7 @@ namespace sqlpp try { - auto c = std::unique_ptr(new Connection(*(config.get()))); + auto c = std::unique_ptr(new Connection(config)); return pool_connection(c, this); } catch (const sqlpp::exception& e)