Fix linker error: use constexpr for static class constants
All checks were successful
Build and Push / build-all (push) Successful in 7m59s

static const int members need explicit definitions when ODR-used,
but static constexpr int are implicitly inline in C++17.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
doomtube 2026-01-11 17:23:40 -05:00
parent 3c67397b7d
commit aa96b78f48

View file

@ -57,8 +57,8 @@ public:
const std::string &y); const std::string &y);
private: private:
static const int DAILY_PIXEL_LIMIT = 1000; static constexpr int DAILY_PIXEL_LIMIT = 1000;
static const int FACE_SIZE = 200; static constexpr int FACE_SIZE = 200;
bool isValidPixelPosition(int faceId, int x, int y); bool isValidPixelPosition(int faceId, int x, int y);
bool isValidColor(const std::string &color); bool isValidColor(const std::string &color);