From 8aaeff98a3588089ddfacc2d8ad4ae508f20415d Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Thu, 26 Jul 2018 09:43:36 +0900 Subject: [PATCH] lottie: updated library dependancy to c++14 Change-Id: I6262065f30393830ea5192d0f549491f2c42677e --- CMakeLists.txt | 2 +- meson.build | 2 +- src/vector/vglobal.h | 10 ---------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40f8ea6..daf3d6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ add_library(lottie-player::lottie-player ALIAS lottie-player) #declare target compilation options target_compile_options(lottie-player PUBLIC - -std=c++11 + -std=c++14 PRIVATE -Wall -fvisibility=hidden) diff --git a/meson.build b/meson.build index c6a2f2a..8abff81 100644 --- a/meson.build +++ b/meson.build @@ -6,7 +6,7 @@ lottie_player_lib_version = '0.0.1' add_global_arguments('-DDEMO_DIR="@0@/example/resource/"'.format(meson.current_source_dir()), language : 'cpp') -compiler_flags = ['-Wall','-std=c++11', '-fvisibility=hidden'] +compiler_flags = ['-Wall','-std=c++14', '-fvisibility=hidden'] if (build_machine.system() == 'linux') compiler_flags += ['-pthread'] diff --git a/src/vector/vglobal.h b/src/vector/vglobal.h index eefe5b2..0585955 100644 --- a/src/vector/vglobal.h +++ b/src/vector/vglobal.h @@ -35,16 +35,6 @@ typedef uint8_t uchar; #include"vdebug.h" #define VECTOR_FALLTHROUGH -/* - * keep this till we move the code to c++14 - */ -namespace std { -template -std::unique_ptr make_unique( Args&& ...args ) -{ - return std::unique_ptr( new T( std::forward(args)... ) ); -} -} #include class RefCount -- 2.34.1