HaikuArchives / FontBoy

A small application to show your installed fonts in Haiku
Other
2 stars 10 forks source link

Build failure (x86_64) 'constexpr' needed for in-class initialization of static data member #44

Closed KevinAdams05 closed 6 years ago

KevinAdams05 commented 6 years ago

Build failure on x86_64, hrev52029

Prefs.h:98:21: error: 'constexpr' needed for in-class initialization of static data member 'const float Prefs::FM_ROWHEIGHT_BUFFER' of non-integral type [-fpermissive]
  static const float FM_ROWHEIGHT_BUFFER = 12;

Changing const to constexpr, as the error message suggests, fixes the build issue. I'm not sure if that is backwards compatiable with 32bit.