john-chapman/im3d

Color constants static init

john-chapman opened this issue · 0 comments

  • Color constants are static init inside im3d.cpp, this causes issues e.g. when declaring a static array of Im3d::Color in another translation unit.
  • Solution is to mark these as constexpr, requires Color ctors to also be marked as constexpr.