List Question
20 TechQA 2024-01-12T21:32:40.050000Is it false positive here: warning C4172: returning address of local variable or temporary?
235 views
Asked by Damir Tenishev
Can you bind a const T*&& to an xvalue of type T*?
315 views
Asked by Jan Schultke
Temporary object creation for reference parameter and optimization changes
124 views
Asked by User 10482
Why do I need a const lambda when calling std::partition
123 views
Asked by IRP_HANDLER
Binding const rvalues reference to non-const rvalues?
119 views
Asked by mada
Copy initialization with deleted copy constructor in reference initialization
2.3k views
Asked by xmh0511
Does forming a reference to an object constitute access?
173 views
Asked by Filipp
Is it ok to return default argument's value by const reference?
939 views
Asked by FrozenHeart
C++ - using const reference to prolong a member of a temporary, ok or UB?
1.2k views
Asked by user2717954
Why is a double convertible to a const-reference of seemingly any primitive?
271 views
Asked by R_Kapp
Best viable conversion function
166 views
Asked by Jan Tušil
Non-const lvalue reference to type 'A *' cannot bind to a value of unrelated type 'std::shared_ptr<A>'
2.3k views
Asked by Arun Kumar
lvalue and rvalue as function parameters
1.1k views
Asked by emacos
Is a const reference bound to another reference which is cast from temporary a dangling reference?
279 views
Asked by choxsword
Cast from shared pointer to shared pointer to const
2.3k views
Asked by nyarlathotep108
shared_ptr<T> to const shared_ptr<const T>&
2k views
Asked by JJ.
Prolonging life of a temporary object using const reference
1.9k views
Asked by user3762146
Why is rval ref binding to lval ref function?
735 views
Asked by MrBloom
Does const reference prolong the life of a temporary object returned by a temporary object?
887 views
Asked by Alex Gidan
invalid initialization of non-const reference of type ‘std::string&
560 views
Asked by killburn