diff Core/Cache/MemoryCache.h @ 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/MemoryCache.h	Fri Feb 28 13:23:11 2020 +0100
+++ b/Core/Cache/MemoryCache.h	Mon Mar 02 15:32:45 2020 +0100
@@ -33,9 +33,11 @@
 
 #pragma once
 
-#include <memory>
+#include "../Compatibility.h"
+#include "ICachePageProvider.h"
 #include "LeastRecentlyUsedIndex.h"
-#include "ICachePageProvider.h"
+
+#include <memory>
 
 namespace Orthanc
 {
@@ -50,7 +52,7 @@
       struct Page
       {
         std::string id_;
-        std::auto_ptr<IDynamicObject> content_;
+        std::unique_ptr<IDynamicObject> content_;
       };
 
       ICachePageProvider& provider_;