Sfoglia il codice sorgente

Inline call_destructor_and_deallocate

Daniele Bartolini 12 anni fa
parent
commit
e1125fe574
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/core/mem/Allocator.h

+ 1 - 1
src/core/mem/Allocator.h

@@ -63,7 +63,7 @@ Allocator& default_allocator();
 
 /// Respects standard behaviour when calling on NULL @a ptr
 template <typename T>
-void call_destructor_and_deallocate(Allocator& a, T* ptr)
+inline void call_destructor_and_deallocate(Allocator& a, T* ptr)
 {
 	if (ptr != NULL)
 	{