aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/new.h
diff options
context:
space:
mode:
authorPharap <2933055+Pharap@users.noreply.github.com>2018-10-26 19:34:34 +0100
committerGitHub <noreply@github.com>2018-10-26 19:34:34 +0100
commit6a717473175cc7d900fe67bc071f7e7c72f01e29 (patch)
tree75ad5ab38c9d49c678e6ed61a0f0d8ee09da672b /cores/arduino/new.h
parentb410611ffcdcb822d69c828f01dd6216c1ef3348 (diff)
Add noexcept specifier to placement new operator
The standard mandates that placement new should be have a noexcept specifier.
Diffstat (limited to 'cores/arduino/new.h')
-rw-r--r--cores/arduino/new.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/new.h b/cores/arduino/new.h
index 7690911..763f5cc 100644
--- a/cores/arduino/new.h
+++ b/cores/arduino/new.h
@@ -23,7 +23,7 @@
void * operator new(size_t size);
void * operator new[](size_t size);
-void * operator new(size_t size, void * ptr);
+void * operator new(size_t size, void * ptr) noexcept;
void operator delete(void * ptr);
void operator delete[](void * ptr);