We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8aa497 commit b6e414aCopy full SHA for b6e414a
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