Fix linker error: use constexpr for static class constants
All checks were successful
Build and Push / build-all (push) Successful in 7m59s
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:
parent
3c67397b7d
commit
aa96b78f48
1 changed files with 2 additions and 2 deletions
|
|
@ -57,8 +57,8 @@ public:
|
|||
const std::string &y);
|
||||
|
||||
private:
|
||||
static const int DAILY_PIXEL_LIMIT = 1000;
|
||||
static const int FACE_SIZE = 200;
|
||||
static constexpr int DAILY_PIXEL_LIMIT = 1000;
|
||||
static constexpr int FACE_SIZE = 200;
|
||||
|
||||
bool isValidPixelPosition(int faceId, int x, int y);
|
||||
bool isValidColor(const std::string &color);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue