From a543c7d61e284429f80161d3a0dfbfdc4175b07f Mon Sep 17 00:00:00 2001 From: Harald Scheirich <harald.scheirich@kitware.com> Date: Mon, 6 Dec 2021 09:00:50 -0500 Subject: [PATCH] ENH: Update C++ to 14 --- CMakeLists.txt | 2 +- Source/Common/imstkMath.h | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78b362295..8d8b0e15f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,7 @@ set(${PROJECT_NAME}_CMAKE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/CMake) #----------------------------------------------------------------------------- # C++11 Support #----------------------------------------------------------------------------- -set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(THREADS_PREFER_PTHREAD_FLAG ON) diff --git a/Source/Common/imstkMath.h b/Source/Common/imstkMath.h index b5d8c0d9c..c8c7346af 100644 --- a/Source/Common/imstkMath.h +++ b/Source/Common/imstkMath.h @@ -31,18 +31,6 @@ #include <Eigen/StdVector> #include <Eigen/Sparse> -#ifndef _MSC_VER -namespace std -{ -template<typename T, typename ... Args> -std::unique_ptr<T> -make_unique(Args&& ... args) -{ - return std::unique_ptr<T>(new T(std::forward<Args>(args) ...)); -} -} -#endif - namespace imstk { // 2D vector -- GitLab