From 2ed82ca97578af6b0f85bc817035ae77fe89381d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Wed, 1 Feb 2017 10:27:08 +0100 Subject: [PATCH] Add compatibility overload for ConnectionPool.this. See rejectedsoftware/vibe.d#1664. --- source/vibe/core/connectionpool.d | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/vibe/core/connectionpool.d b/source/vibe/core/connectionpool.d index 4d2c7df..fda1941 100644 --- a/source/vibe/core/connectionpool.d +++ b/source/vibe/core/connectionpool.d @@ -44,6 +44,12 @@ class ConnectionPool(Connection) debug m_thread = () @trusted { return Thread.getThis(); } (); } + deprecated("Use an @safe callback instead") + this(Connection delegate() connection_factory, uint max_concurrent = uint.max) + @system { + this(cast(Connection delegate() @safe)connection_factory, max_concurrent); + } + /** Determines the maximum number of concurrently open connections. Attempting to lock more connections that this number will cause the