[Bug libstdc++/69879] Create a pointer to the default operator new and delete
gabriel.ibarra at tallertechnologies dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 2 21:01:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69879
Gabriel Ibarra <gabriel.ibarra at tallertechnologies dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gabriel.ibarra@tallertechno
| |logies.com
--- Comment #2 from Gabriel Ibarra <gabriel.ibarra at tallertechnologies dot com> ---
Created attachment 37848
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37848&action=edit
[RFC] Added default functions for new and delete operators.
Hello, I was working this issue
I created a default function for each of the next operators:
- void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
- void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
- void operator delete(void*) _GLIBCXX_USE_NOEXCEPT
- void operator delete[](void*) _GLIBCXX_USE_NOEXCEPT
- void operator delete(void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
- void operator delete[](void*, std::size_t) _GLIBCXX_USE_NOEXCEPT
- void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
- void* operator new[](std::size_t, const std::nothrow_t&)
_GLIBCXX_USE_NOEXCEPT
- void operator delete(void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
- void operator delete[](void*, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
I had to add the new functions in the gnu.ver in order to be acceded from the
application. They were added in the GLIBCXX_3.4.22 section, is it the right
place?
(tests will be added later)
More information about the Gcc-bugs
mailing list