You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
-Wdeprecated-copy on TCRGBPalette<16>::operator= (colorutils.h:701) — Rule of 5 violation #2725
-Wdeprecated-copy fires on TCRGBPalette<16>::operator= because the class declares a user-defined copy ctor (or destructor) and relies on the implicitly declared copy-assignment operator, which C++11 deprecated.
warning: implicitly-declared TCRGBPalette<16>::operator=(const TCRGBPalette<16>&) is deprecated [-Wdeprecated-copy]
lib/FastLED/fl/gfx/colorutils.h:701:20
Why this matters
C++23/26 likely promotes this to a default-on diagnostic. Fires ~472 times across teensy30/31/40/41/teensyLC builds. Cosmetic for now, but it is the canonical "you violated the Rule of 5" indicator and will cause real grief if/when the class gains a non-trivial destructor.
Proposed fix
Make both special members explicit in detail::TCRGBPalette<N>:
Activity
zackees commentedon Jun 4, 2026
Tracked under fbuild meta-audit: FastLED/fbuild#408
fix(palette): explicit Rule of 5 on detail::TCRGBPalette<N> (FastLED#…