diff UnitTestsSources/ToolboxTests.cpp @ 3713:56f2397f027a storage-commitment

integration mainline->storage-commitment
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 15:42:17 +0100
parents 14b363d972a8 2a170a8f1faf
children f9863630ec7f
line wrap: on
line diff
--- a/UnitTestsSources/ToolboxTests.cpp	Mon Mar 02 10:13:34 2020 +0100
+++ b/UnitTestsSources/ToolboxTests.cpp	Mon Mar 02 15:42:17 2020 +0100
@@ -33,6 +33,8 @@
 
 #include "PrecompiledHeadersUnitTests.h"
 #include "gtest/gtest.h"
+#include "../Core/Compatibility.h"
+#include "../Core/IDynamicObject.h"
 #include "../Core/OrthancException.h"
 #include "../Core/Toolbox.h"
 
@@ -159,35 +161,6 @@
 }
 
 
-
-#include "../Core/IDynamicObject.h"
-
-#if __cplusplus < 201103L
-/**
- * "std::unique_ptr" was introduced in C++11. We emulate it using
- * boost. "The smart pointer unique_ptr [is] a drop-in replacement for
- * std::unique_ptr, usable also from C++03 compilers." This is only
- * available on Boost >= 1.57.0 (from November 2014).
- * https://www.boost.org/doc/libs/1_57_0/doc/html/move/reference.html#header.boost.move.unique_ptr_hpp
- **/
-
-#include <boost/move/unique_ptr.hpp>
-
-namespace std
-{
-  template <typename T>
-  class unique_ptr : public boost::movelib::unique_ptr<T>
-  {
-  public:
-    unique_ptr(T* p) :
-      boost::movelib::unique_ptr<T>(p)
-    {
-    }      
-  };
-}
-
-#endif
-
 TEST(Toolbox, UniquePtr)
 {
   std::unique_ptr<int> i(new int(42));