Created
October 3, 2014 09:11
-
-
Save vittorioromeo/c080b03ee269ea171c83 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline void * operator new(std::size_t n) | |
{ | |
return malloc(n); | |
} | |
inline void operator delete(void * p) noexcept | |
{ | |
free(p); | |
} | |
inline void *operator new[](std::size_t s) | |
{ | |
return malloc(s); | |
} | |
inline void operator delete[](void *p) noexcept | |
{ | |
free(p); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment