summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-15 14:57:27 +0200
committertycho <work.tycho@gmail.com>2015-05-16 11:47:04 +0200
commitc96849f431bb4152a4258d2480bef8cd272e0c6e (patch)
tree0ca69086678f31818311cd9f9a3f00a094a425d9 /src/Globals.h
parentInitial implementation of IniFile overloading (diff)
downloadcuberite-c96849f431bb4152a4258d2480bef8cd272e0c6e.tar
cuberite-c96849f431bb4152a4258d2480bef8cd272e0c6e.tar.gz
cuberite-c96849f431bb4152a4258d2480bef8cd272e0c6e.tar.bz2
cuberite-c96849f431bb4152a4258d2480bef8cd272e0c6e.tar.lz
cuberite-c96849f431bb4152a4258d2480bef8cd272e0c6e.tar.xz
cuberite-c96849f431bb4152a4258d2480bef8cd272e0c6e.tar.zst
cuberite-c96849f431bb4152a4258d2480bef8cd272e0c6e.zip
Diffstat (limited to '')
-rw-r--r--src/Globals.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Globals.h b/src/Globals.h
index cee2094bc..27d944fcc 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -433,10 +433,14 @@ 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)
+
+namespace cpp14
{
- return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
+ template <class T, class... Args>
+ std::unique_ptr<T> make_unique(Args&&... args)
+ {
+ return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
+ }
}
// a tick is 50 ms