mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Use C++14 so we have make_unique
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.13)
|
|||||||
|
|
||||||
project(magicseteditor)
|
project(magicseteditor)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||||
|
|
||||||
find_package(wxWidgets 3 REQUIRED COMPONENTS core base net html)
|
find_package(wxWidgets 3 REQUIRED COMPONENTS core base net html)
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ using std::unique_ptr;
|
|||||||
using std::static_pointer_cast;
|
using std::static_pointer_cast;
|
||||||
using std::dynamic_pointer_cast;
|
using std::dynamic_pointer_cast;
|
||||||
using std::make_shared;
|
using std::make_shared;
|
||||||
|
using std::make_unique;
|
||||||
|
|
||||||
// TODO: remove scoped_ptr
|
// TODO: remove scoped_ptr
|
||||||
template <typename T> using scoped_ptr = unique_ptr<T>;
|
template <typename T> using scoped_ptr = unique_ptr<T>;
|
||||||
|
|||||||
Reference in New Issue
Block a user