From 37739bd2d764067fa16df17418d61bb864a92f6f Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Sun, 6 Aug 2023 10:18:59 +0200 Subject: [PATCH] Add missing template parameter This fixes a compiler error for C++11/14 --- include/sqlpp11/connection_pool.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/sqlpp11/connection_pool.h b/include/sqlpp11/connection_pool.h index c583b7a2..6fb044d5 100644 --- a/include/sqlpp11/connection_pool.h +++ b/include/sqlpp11/connection_pool.h @@ -90,7 +90,7 @@ namespace sqlpp template typename connection_pool::_pooled_connection_t connection_pool::pool_core::get() { - std::unique_lock lock{_mutex}; + std::unique_lock lock{_mutex}; if (_handles.empty()) { lock.unlock(); return _pooled_connection_t{_connection_config, this->shared_from_this()}; @@ -108,7 +108,7 @@ namespace sqlpp template void connection_pool::pool_core::put(_handle_ptr_t& handle) { - std::unique_lock lock{_mutex}; + std::unique_lock lock{_mutex}; if (_handles.full ()) { _handles.set_capacity (_handles.capacity () + 5); } @@ -118,7 +118,7 @@ namespace sqlpp template std::size_t connection_pool::pool_core::available() { - std::unique_lock lock{_mutex}; + std::unique_lock lock{_mutex}; return _handles.size(); }