Using std::optional to invalidate my RAII object in move constructor/asignment
Using std::optional to invalidate my RAII object in move constructor/asignment
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/11162066/john-obrien)John O'brien
(stackoverflow.com/users/7582247/ted-lyngmo)Ted Lyngmo
(stackoverflow.com/users/3242146/jeff-garrett)Jeff Garrett
(stackoverflow.com/users/13407802/digito-evo)digito_evo
A special thanks goes out to the (https://stackoverflow.com/questions/76376894/using-stdoptional-to-invalidate-my-raii-object-in-move-constructor-asignment)Stackexchange community
I wish you all a wonderful day! Stay safe :)
c++ c++20 raii stdoptional