steinbergmedia / vstgui

A user interface toolkit mainly for audio plug-ins
Other
850 stars 121 forks source link

compile error after updating to Xcode 14.3: no member named 'move' in namespace 'std' #290

Closed sophiapoirier closed 1 year ago

sophiapoirier commented 1 year ago
In file included from vstgui/vstgui/vstgui.h:8:
../../vstgui/vstgui/lib/vstguibase.h:351:16: error: no member named 'move' in namespace 'std'; did you mean 'modf'?
                *this = std::move (op);
                        ~~~~~^~~~
                             modf
In file included from vstgui/vstgui/vstgui.h:8:
../../vstgui/vstgui/lib/vstguibase.h:419:15: error: no member named 'move' in namespace 'std'; did you mean 'modf'?
        *this = std::move (mp);
                ~~~~~^~~~
                     modf

Patch attached that resolves the build failure, however more thorough IWYU is probably in order and #include <utility> should really be added to every file that uses std::move. std.move.diff.txt