From eae11d3ba3ee03dcc6ee1f5f826f0261c33b67f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sat, 6 Oct 2018 10:27:30 +0200 Subject: [PATCH] Fix deprecation warnings on DMD 2.082.0 --- source/vibe/core/concurrency.d | 2 +- source/vibe/core/core.d | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/vibe/core/concurrency.d b/source/vibe/core/concurrency.d index 05b4c42..28ab92e 100644 --- a/source/vibe/core/concurrency.d +++ b/source/vibe/core/concurrency.d @@ -153,7 +153,7 @@ struct ScopedLock(T) */ @property inout(T) unsafeGet() inout nothrow { return m_ref; } - inout(T) opDot() inout nothrow { return m_ref; } + alias unsafeGet this; //pragma(msg, "In ScopedLock!("~T.stringof~")"); //pragma(msg, isolatedRefMethods!T()); // mixin(isolatedAggregateMethodsString!T()); diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index d4caf36..41202e1 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -689,6 +689,7 @@ void hibernate(scope void delegate() @safe nothrow on_interrupt = null) */ void switchToTask(Task t) @safe nothrow { + import std.typecons : Yes, No; auto defer = TaskFiber.getThis().m_yieldLockCount > 0 ? Yes.defer : No.defer; s_scheduler.switchTo(t, defer); }