summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authortycho <tycho@localhost>2014-10-10 16:33:19 +0200
committertycho <tycho@localhost>2014-10-10 16:33:19 +0200
commit473c0425d374132c097045a84e03510bc8a7876b (patch)
tree1188d46473b129375a28cf460adb14b226f93164 /src/Globals.h
parentFixed MSVC compilation. (diff)
downloadcuberite-473c0425d374132c097045a84e03510bc8a7876b.tar
cuberite-473c0425d374132c097045a84e03510bc8a7876b.tar.gz
cuberite-473c0425d374132c097045a84e03510bc8a7876b.tar.bz2
cuberite-473c0425d374132c097045a84e03510bc8a7876b.tar.lz
cuberite-473c0425d374132c097045a84e03510bc8a7876b.tar.xz
cuberite-473c0425d374132c097045a84e03510bc8a7876b.tar.zst
cuberite-473c0425d374132c097045a84e03510bc8a7876b.zip
Diffstat (limited to '')
-rw-r--r--src/Globals.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h
index 4ee1352eb..5c5a8b3d2 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -419,6 +419,12 @@ typename std::enable_if<std::is_arithmetic<T>::value, C>::type CeilC(T a_Value)
+//temporary replacement for std::make_unique until we get c++14
+template< class T, class... Args >
+std::unique_ptr<T> make_unique( Args&&... args )
+{
+ return std::unique_ptr<T>(new T(args...));
+}
#ifndef TOLUA_TEMPLATE_BIND
@@ -436,3 +442,4 @@ typename std::enable_if<std::is_arithmetic<T>::value, C>::type CeilC(T a_Value)
#include "BlockInfo.h"
+