StackOverflow Questions for Tag: dangling-pointer

Xero
Xero

Reputation: 23

Will there be dangling references to map values if it gets resized?

Score: 1

Views: 39

Answers: 0

Read More
slyx
slyx

Reputation: 2264

prevent initializing std::optional<std::reference_wrapper<const T>> with rvalue std::optional<T>

Score: 4

Views: 452

Answers: 2

Read More
Vero
Vero

Reputation: 331

Return a shared pointer from a function vs Capturing a shared pointer in a Lambda

Score: 1

Views: 407

Answers: 1

Read More
einpoklum
einpoklum

Reputation: 132128

Why doesn't GCC warn me about storing a reference to a local variable?

Score: -1

Views: 163

Answers: 1

Read More
user17804723
user17804723

Reputation:

Why we initialize the next pointer of Linked List as NULL before deletion

Score: 0

Views: 410

Answers: 1

Read More
mpv
mpv

Reputation: 1

bugged const_iterator& operator++() for red-black tree

Score: 0

Views: 107

Answers: 0

Read More
Manan Chawla
Manan Chawla

Reputation: 31

Storing address of local var via passing a double ptr to function does not cause a seg fault but returning address of that var causes seg fault. Why?

Score: 0

Views: 40

Answers: 2

Read More
user118534
user118534

Reputation: 101

Is it unsafe to co_yield a pointer to a local coroutine variable?

Score: 10

Views: 328

Answers: 1

Read More
jtotheakob
jtotheakob

Reputation: 33

Declaring temporary variables from vector<vector<string>> in a for-loop

Score: -1

Views: 368

Answers: 2

Read More
Attila Szasz
Attila Szasz

Reputation: 1

What is the exact cause of undefined behaviour in this piece of code involving shared_ptr's and lambda ref capture?

Score: 0

Views: 77

Answers: 0

Read More
esmaeil.zivari
esmaeil.zivari

Reputation: 11

how to monitor dangling pointers that points to leakded memory?

Score: 0

Views: 299

Answers: 3

Read More
anonymous
anonymous

Reputation: 19

Why ptr not becomes Dangling pointer because when return pointer who store the address of local variable get destroy after return function?

Score: 0

Views: 253

Answers: 1

Read More
gahhu
gahhu

Reputation: 31

Dangling reference solution

Score: 1

Views: 452

Answers: 1

Read More
Changhe Li
Changhe Li

Reputation: 3

What is the effect of calling a virtual method by a base class pointer bound to a derived object that has been deleted

Score: -1

Views: 52

Answers: 2

Read More
TheAngriestCrusader
TheAngriestCrusader

Reputation: 373

C++ Dangling pointer issue

Score: 1

Views: 1410

Answers: 1

Read More
Oliver Schönrock
Oliver Schönrock

Reputation: 1156

dangling reference in nested vector when parent container reallocates

Score: 1

Views: 283

Answers: 1

Read More
user17804723
user17804723

Reputation:

Why is the pointer not free and doesn't it bring me same value of a variable?

Score: 0

Views: 486

Answers: 4

Read More
Valentin Popescu
Valentin Popescu

Reputation: 174

I don't understand why I have a dangling pointer

Score: 2

Views: 148

Answers: 1

Read More
Zhiltsoff Igor
Zhiltsoff Igor

Reputation: 1822

How to return Derived from a function as a reference to Base?

Score: 0

Views: 79

Answers: 1

Read More
Dan
Dan

Reputation: 301

C++ How to debug a dangling pointer in production

Score: 1

Views: 862

Answers: 1

Read More
PreviousPage 2Next