Cppcheck says 'Reference to temporary returned' but code runs fine. False positive maybe?
Cppcheck says 'Reference to temporary returned' but code runs fine. False positive maybe?
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/4108363/simonh)SimonH
(stackoverflow.com/users/4117728/463035818-is-not-an-ai)463035818_is_not_an_ai
(stackoverflow.com/users/7976805/yksisarvinen)Yksisarvinen
(stackoverflow.com/users/15416/msalters)MSalters
A special thanks goes out to the (https://stackoverflow.com/questions/76999823/cppcheck-says-reference-to-temporary-returned-but-code-runs-fine-false-positi)Stackexchange community
I wish you all a wonderful day! Stay safe :)
cppcheck c++