We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8799cae commit 6ccad0aCopy full SHA for 6ccad0a
libunwind/src/UnwindCursor.hpp
@@ -482,6 +482,10 @@ class UnwindCursor : public AbstractUnwindCursor {
482
DISPATCHER_CONTEXT *getDispatcherContext() { return &_dispContext; }
483
void setDispatcherContext(DISPATCHER_CONTEXT *disp) { _dispContext = *disp; }
484
485
+ // libunwind does not and should not depend on C++ library which means that we
486
+ // need our own defition of inline placement new.
487
+ static void *operator new(size_t, UnwindCursor<A, R> *p) { return p; }
488
+
489
private:
490
491
pint_t getLastPC() const { return _dispContext.ControlPc; }
0 commit comments