From 1c18489fe70b6ef53b266825ada1ef3978485ddd Mon Sep 17 00:00:00 2001 From: "Vinogradov, Sergei" Date: Thu, 1 Sep 2022 19:12:12 -0400 Subject: [PATCH] Fix deprecation warning in multitier example --- examples/multitier_cache/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/multitier_cache/main.cpp b/examples/multitier_cache/main.cpp index 28990c341f..800c0c7cfa 100644 --- a/examples/multitier_cache/main.cpp +++ b/examples/multitier_cache/main.cpp @@ -57,7 +57,7 @@ bool put(CacheKey key, const std::string& value) { if (!handle) { return false; // cache may fail to evict due to too many pending writes } - std::memcpy(handle->getWritableMemory(), value.data(), value.size()); + std::memcpy(handle->getMemory(), value.data(), value.size()); gCache_->insertOrReplace(handle); return true; }