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