Skip to content

Commit

Permalink
Add operator delete(void *, size_t) for C++14.
Browse files Browse the repository at this point in the history
  • Loading branch information
korli committed Nov 7, 2015
1 parent b49dd60 commit 7ccbb2f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions headers/private/kernel/util/kernel_cpp.h
Expand Up @@ -33,6 +33,16 @@ extern void operator delete(void *ptr) throw ();
extern void operator delete[](void *ptr) throw ();
#endif

#if __cplusplus >= 201402L

inline void
operator delete(void *ptr, size_t size) throw ()
{
free(ptr);
}

#endif // __cplusplus >= 201402L

#endif // #if _KERNEL_MODE

#endif // __cplusplus
Expand Down

0 comments on commit 7ccbb2f

Please sign in to comment.