jvcleave / ofxImGui

Use ImGui in openFrameworks
299 stars 123 forks source link

constexpr float ofColorScale: Syntax error in input #125

Closed Jonathhhan closed 5 months ago

Jonathhhan commented 5 months ago

The issue appears in the develop branch. I try to make swig bindings and came across this error in imconfig.h: constexpr float ofColorScale(1.0f/255.0f); ..\..\src\..\..\ofxImGui\src\imconfig.h(184) : Error: Syntax error in input(1).

It works, if I change it to this: constexpr float ofColorScale = 1.0f / 255.0f;

Daandelange commented 5 months ago

Thanks for the report, should be fixed now ;)