Sync from sourcemod.
Sync from sourcemod.
1.1 --- a/include/am-refcounting.h Thu Aug 29 23:51:20 2013 -0700
1.2 +++ b/include/am-refcounting.h Thu Aug 29 23:51:30 2013 -0700
1.3 @@ -1,4 +1,4 @@
1.4 -// vim: set sts=8 ts=2 sw=2 tw=99 et:
1.5 +// vim: set sts=8 ts=4 sw=4 tw=99 et:
1.6 //
1.7 // Copyright (C) 2013, David Anderson and AlliedModders LLC
1.8 // All rights reserved.
1.9 @@ -31,6 +31,7 @@
1.10 #define _include_amtl_refcounting_h_
1.11
1.12 #include <am-utility.h>
1.13 +#include <am-moveable.h>
1.14
1.15 namespace ke {
1.16
1.17 @@ -189,6 +190,11 @@
1.18 {
1.19 AddRef();
1.20 }
1.21 + Ref(Moveable<Ref> other)
1.22 + : thing_(other.thing_)
1.23 + {
1.24 + other.thing_ = NULL;
1.25 + }
1.26 template <typename S>
1.27 Ref(const Ref<S> &other)
1.28 : thing_(*other)