1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-25 00:53:43 +00:00

Buildfix on gcc 5.4

This commit is contained in:
King_DuckZ 2016-06-30 12:41:01 +01:00
parent 14587f1cb8
commit 0df8c5875c

View file

@ -46,7 +46,7 @@ namespace dinhelp {
template <typename T, size_t S, typename A> template <typename T, size_t S, typename A>
T* AutomemRawBase_heap<T, S, A>::AllocMemory() { T* AutomemRawBase_heap<T, S, A>::AllocMemory() {
#if !defined(NDEBUG) #if !defined(NDEBUG)
Assert(nullptr == m_localMem); assert(nullptr == m_localMem);
#endif #endif
m_localMem = A().allocate(S); m_localMem = A().allocate(S);
#if defined(ASSERTIONSENABLED) #if defined(ASSERTIONSENABLED)
@ -65,7 +65,7 @@ namespace dinhelp {
template <typename T, size_t S, typename A> template <typename T, size_t S, typename A>
void AutomemRawBase_heap<T, S, A>::FreeMemory() noexcept { void AutomemRawBase_heap<T, S, A>::FreeMemory() noexcept {
#if !defined(NDEBUG) #if !defined(NDEBUG)
Assert(nullptr != m_localMem); assert(nullptr != m_localMem);
#endif #endif
A().deallocate(m_localMem, S); A().deallocate(m_localMem, S);
#if !defined(NDEBUG) #if !defined(NDEBUG)