Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* RegisterViewModelBase.h: add <memory> for unique_ptr Without the change gcc-12 fails to build edb-debugger as: [ 20%] Building CXX object src/CMakeFiles/edb.dir/RegisterViewModelBase.cpp.o In file included from edb-debugger/src/RegisterViewModelBase.cpp:18: edb-debugger/include/RegisterViewModelBase.h:162:14: error: 'unique_ptr' in namespace 'std' does not name a template type 162 | std::unique_ptr<CategoriesHolder> rootItem; | ^~~~~~~~~~ edb-debugger/include/RegisterViewModelBase.h:9:1: note: 'std::unique_ptr' is defined in header '<memory>'; did you forget to '#include <memory>'? 8 | #include <deque> +++ |+#include <memory> * State.h: add <memory> for unique_ptr Without the change gcc-12 fails to build edb-debugger as: [ 21%] Building CXX object src/CMakeFiles/edb.dir/State.cpp.o In file included from edb-debugger/src/State.cpp:19: edb-debugger/include/State.h:93:14: error: 'unique_ptr' in namespace 'std' does not name a template type 93 | std::unique_ptr<IState> impl_; | ^~~~~~~~~~ edb-debugger/include/State.h:24:1: note: 'std::unique_ptr' is defined in header '<memory>'; did you forget to '#include <memory>'? 23 | #include "Types.h" +++ |+#include <memory> 24 | * IState.h: add <memory> for unique_ptr Without the change gcc-12 fails to build edb-debugger as: [ 69%] Building CXX object plugins/DebuggerCore/CMakeFiles/DebuggerCore.dir/unix/linux/arch/x86-generic/PlatformState.cpp.o In file included from edb-debugger/plugins/DebuggerCore/unix/linux/arch/x86-generic/PlatformState.h:22, from edb-debugger/plugins/DebuggerCore/unix/linux/arch/x86-generic/PlatformState.cpp:19: edb-debugger/include/IState.h:33:22: error: 'unique_ptr' in namespace 'std' does not name a template type 33 | virtual std::unique_ptr<IState> clone() const = 0; | ^~~~~~~~~~ edb-debugger/include/IState.h:23:1: note: 'std::unique_ptr' is defined in header '<memory>'; did you forget to '#include <memory>'? 22 | #include "Register.h" +++ |+#include <memory> 23 | #include "Types.h"
- Loading branch information