BAN: move placement new declaration to Move.h
This commit is contained in:
parent
686b425eb9
commit
0cebf248a3
|
@ -131,7 +131,4 @@ namespace BAN
|
||||||
T* m_pointer = nullptr;
|
T* m_pointer = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void* operator new(size_t, void* addr) { return addr; }
|
|
||||||
inline void* operator new[](size_t, void* addr) { return addr; }
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include <BAN/Traits.h>
|
#include <BAN/Traits.h>
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
namespace BAN
|
namespace BAN
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -24,4 +26,7 @@ namespace BAN
|
||||||
return static_cast<T&&>(arg);
|
return static_cast<T&&>(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void* operator new(size_t, void* addr) { return addr; }
|
||||||
|
inline void* operator new[](size_t, void* addr) { return addr; }
|
Loading…
Reference in New Issue