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)