Skip to content

Add new[] and delete[] operators [imported] #883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cmaglie opened this issue Nov 15, 2012 · 1 comment
Closed

Add new[] and delete[] operators [imported] #883

cmaglie opened this issue Nov 15, 2012 · 1 comment

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 15, 2012

This is Issue 883 moved from a Google Code project.
Added by 2012-04-09T16:17:18.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Enhancement, Priority-Medium

Original description

Simple new and delete operators exist in <new.h> and <new.cpp>, but the new[] and delete[] operators do not.

These are useful when writing code that needs dynamically allocated arrays.

This will not cause any compatibility issues, as it is adding a new functionality.

See #73 for a working patch and test case.

@kibergus
Copy link

Please reopen this issue. It is not fixed. Placement new is missing. Check for return value of malloc is missing. You can read more here:
http://arduino.cc/forum/index.php/topic,119127.msg896385.html#msg896385
And here:
#108

oriregev pushed a commit to oriregev/Arduino that referenced this issue Dec 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants