Does a constant reference member variable in an anonymous struct extend the lifetime of a temporary?
Does a constant reference member variable in an anonymous struct extend the lifetime of a temporary?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!
(stackoverflow.com/users/3740047/sedenion)Sedenion |
(stackoverflow.com/users/3647361/columbo)Columbo |
(stackoverflow.com/users/7582247/ted-lyngmo)Ted Lyngmo |
A special thanks goes out to the (https://stackoverflow.com/questions/75184355/does-a-constant-reference-member-variable-in-an-anonymous-struct-extend-the-life)Stackexchange community |
I wish you all a wonderful day! Stay safe :)
lifetime c++14 language-lawyer c++