summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-12 22:08:28 +0200
committerMattes D <github@xoft.cz>2014-10-12 22:08:28 +0200
commit53410a9271a8c9fddfe690d751dc5f3ad217ca28 (patch)
treed7c85371c4c0c4e8ed94fa40513fde61891e6923 /src/Globals.h
parentWe only use VS2013 now, thus VS2008 is banished! (diff)
parentAligned simulators (diff)
downloadcuberite-53410a9271a8c9fddfe690d751dc5f3ad217ca28.tar
cuberite-53410a9271a8c9fddfe690d751dc5f3ad217ca28.tar.gz
cuberite-53410a9271a8c9fddfe690d751dc5f3ad217ca28.tar.bz2
cuberite-53410a9271a8c9fddfe690d751dc5f3ad217ca28.tar.lz
cuberite-53410a9271a8c9fddfe690d751dc5f3ad217ca28.tar.xz
cuberite-53410a9271a8c9fddfe690d751dc5f3ad217ca28.tar.zst
cuberite-53410a9271a8c9fddfe690d751dc5f3ad217ca28.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..b84607355 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"
+