Hi.. how do you test that two color pallets are the same?

Hi… how do you test that two color pallets are the same?

I am trying something like:
CRGBPalette16 currentPalette(CRGB::Black);
CRGBPalette16 endPalette(CRGB::Black);

  if (currentPalette==endPalette) {
    Serial.println("Palettes are the same.");
  }

However, the condition does not pass.

Am I using this incorrectly?

Line 721 of http://fastled.io/docs/3.1/colorutils_8h_source.html shows that the == operator is defined for CRGBPalette16 as checking equality for entries, so that condition should evaluate to true. Are you sure you’re not modifying any entries in between?