Skip to content

FastLED incompatible with ArduinoSTL on AVR due to operator new(size_t, void* ptr) _NO_EXCEPT #1909

@Dantali0n

Description

@Dantali0n

Due to the definition of new in inplacenew.h:

#if defined(__AVR__) || !defined(__has_include)
#ifndef __has_include
#define _NO_EXCEPT
#else
#define _NO_EXCEPT noexcept
#endif
inline void* operator new(size_t, void* ptr) _NO_EXCEPT {
    return ptr;
}

ArduinoSTL can no longer be used together with FastLED. I would propose to add an additional preprocessor check that allows to exclude this inline definition.

#if (defined(__AVR__) || !defined(__has_include)) && !defined(FASTLED_NO_NEW)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions