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
I'm using the ImGuiFileDialog in my own project, and I compiled all code with C++20/23/26 to test forward-compatibility.
And I ran into a deprecation warning in the file dialog code when using C++20:
/.../build/_deps/filedialog-src/ImGuiFileDialog.cpp:3997:130: warning: bitwise operation between different enumeration types ‘ImGuiSelectableFlags_’ and ‘ImGuiSelectableFlagsPrivate_’ is deprecated [-Wdeprecated-enum-enum-conversion]
3997 | if (ImGui::Selectable(infos_ptr->fileNameExt.c_str(), &selected, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_SpanAvailWidth)) {
There is no urgent action needed since the code still compiles, but it might break at some point in the future.
So, please see this issue just as a reminder :)
The text was updated successfully, but these errors were encountered:
I encountered the same issue with C++20. The reason is that ImGuiSelectableFlags_SpanAllColumns belongs to the ImGuiSelectableFlags_ enum, while ImGuiSelectableFlags_SpanAvailWidth is part of the ImGuiSelectableFlagsPrivate_ enum. The ImGuiSelectableFlags_ enum has a value range from 0 to 1 << 5, whereas ImGuiSelectableFlagsPrivate_ ranges from 1 << 20 to 1 << 27. Since these ranges do not overlap, performing a bitwise OR operation between these two flags does not cause any logical conflicts.
I'm using the ImGuiFileDialog in my own project, and I compiled all code with C++20/23/26 to test forward-compatibility.
And I ran into a deprecation warning in the file dialog code when using C++20:
There is no urgent action needed since the code still compiles, but it might break at some point in the future.
So, please see this issue just as a reminder :)
The text was updated successfully, but these errors were encountered: