Skip to content

Commit e29cbbf

Browse files
authored
Merge pull request pmem#15 from vinser52/fix_deprecation_warn
Fix deprecation warn
2 parents 6122ab9 + 1c18489 commit e29cbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/multitier_cache/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ bool put(CacheKey key, const std::string& value) {
5757
if (!handle) {
5858
return false; // cache may fail to evict due to too many pending writes
5959
}
60-
std::memcpy(handle->getWritableMemory(), value.data(), value.size());
60+
std::memcpy(handle->getMemory(), value.data(), value.size());
6161
gCache_->insertOrReplace(handle);
6262
return true;
6363
}

0 commit comments

Comments
 (0)