Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1290

Comment by HolyBlackCat on How to avoid dangling pointer in C++

$
0
0
Seeing that SPA_PROCESS_LATENCY_INFO_INIT expands to a compound literal, it shouldn't compile in C++ in the first place (assuming -std=c++?? -pedantic-errors). You just don't use this macro, and create a local variable of this type manually.

Viewing all articles
Browse latest Browse all 1290

Trending Articles