sirjuddington / SLADE

It's a Doom editor
https://slade.mancubus.net
GNU General Public License v2.0
711 stars 109 forks source link

[Compilation Issue] Ambiguous call to 'addActionGroup' in TextEntryPanel #1619

Closed wallabra closed 12 months ago

wallabra commented 12 months ago

SLADE Version: git latest Operating System: Artix Linux

Issue Details:

Compilation fails due to an ambiguous overload.

[ 54%] Building CXX object src/CMakeFiles/slade.dir/MainEditor/UI/EntryPanel/TextEntryPanel.cpp.o
src/MainEditor/UI/EntryPanel/TextEntryPanel.cpp:96:12: error: call to member function 'addActionGroup' is ambiguous
        toolbar_->addActionGroup("Compile", { "arch_scripts_compileacs" }, true);
        ~~~~~~~~~~^~~~~~~~~~~~~~
/src/./UI/SToolBar/SToolBar.h:76:18: note: candidate function
        void            addActionGroup(const wxString& name, const wxArrayString& actions, bool at_end = false);
                        ^
src/./UI/SToolBar/SToolBar.h:77:18: note: candidate function
        void            addActionGroup(const wxString& name, const vector<string>& actions, bool at_end = false);
                        ^
pfspace commented 12 months ago

I came to report this very issue.