1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

sys/cpp_new_delete: add deleted operators required by C++14

This commit is contained in:
Gunar Schorcht 2022-01-06 11:18:50 +01:00
parent 3e2de3590e
commit a0f0d2ea43

View File

@ -14,6 +14,8 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#include <stdlib.h>
@ -35,6 +37,14 @@ void operator delete(void *ptr) {
free(ptr);
}
void operator delete(void *ptr, size_t) noexcept {
free(ptr);
}
void operator delete[](void *ptr) {
free(ptr);
}
void operator delete [](void *ptr, size_t) noexcept {
free(ptr);
}