You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P2864R2 for C++26 seems to actually be about undeprecating part of that (except the one about constants from different enums).
EDIT: Ah no never mind, I misread it.
Otherwise, if one operand is of enumeration type and the other operand is of a different enumeration type
or a floating-point type, the expression is ill-formed
That paper proposes using +TheConstant to promote it to an integer as a workaround.
Version/Branch of Dear ImGui: Commit 5288687.
Back-end/Renderer/Compiler/OS
Back-ends: N/A.
Compiler: Clang 18, possibly GCC 14.
Operating System: N/A.
Issue:
C++26 will include "Removing deprecated arithmetic conversion on enumerations".
The listed compilers already implement those (https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B26_features):
Reproduction:
While building
imgui_widgets.cpp
:The text was updated successfully, but these errors were encountered: