From 0231eecd40a4cfd0f510ee66d7619c184b7b11a3 Mon Sep 17 00:00:00 2001 From: Hiroki Noda Date: Mon, 20 May 2024 05:28:28 +0900 Subject: [PATCH] Fix: insert requires value as shared --- source/sievecache/package.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sievecache/package.d b/source/sievecache/package.d index 97d3caf..2334c58 100644 --- a/source/sievecache/package.d +++ b/source/sievecache/package.d @@ -154,7 +154,7 @@ struct SieveCache(K, V) if (isEqualityComparable!K && isKeyableType!K) } /// Ditto. - bool insert(K key, V value) shared + bool insert(K key, shared V value) shared { synchronized {