diff Core/Cache/MemoryObjectCache.cpp @ 3712:2a170a8f1faf

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 15:32:45 +0100
parents 94f4a18a79cc
children
line wrap: on
line diff
--- a/Core/Cache/MemoryObjectCache.cpp	Fri Feb 28 13:23:11 2020 +0100
+++ b/Core/Cache/MemoryObjectCache.cpp	Mon Mar 02 15:32:45 2020 +0100
@@ -34,6 +34,8 @@
 #include "../PrecompiledHeaders.h"
 #include "MemoryObjectCache.h"
 
+#include "../Compatibility.h"
+
 namespace Orthanc
 {
   class MemoryObjectCache::Item : public boost::noncopyable
@@ -142,7 +144,7 @@
   void MemoryObjectCache::Acquire(const std::string& key,
                                   ICacheable* value)
   {
-    std::auto_ptr<Item> item(new Item(value));
+    std::unique_ptr<Item> item(new Item(value));
 
     if (value == NULL)
     {