mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 17:17:45 +00:00
[utils] add a flag to use std new (#11937)
The noexcept placement new is standard in c++11. This commit adds a config OPENTHREAD_CONFIG_USE_STD_NEW to allow using <new>. The default behavior is still using OpenThread's own placement new implementation.
This commit is contained in:
@@ -26,8 +26,6 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Disable OpenThread's own new implementation to avoid duplicate definition
|
||||
#define OT_INCLUDE_COMMON_NEW_HPP_
|
||||
#include "test_platform.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
Reference in New Issue
Block a user