Why operator- in std::optional result in a UB when *this is not valid?
Channel:
Subscribers:
4,120
Published on ● Video Link: https://www.youtube.com/watch?v=qJuvWHSF6X8
Why operator- in std::optional result in a UB when *this is not valid?
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/3316009/calvin)calvin
(stackoverflow.com/users/4117728/463035818-is-not-an-ai)463035818_is_not_an_ai
(stackoverflow.com/users/4706785/peter)Peter
A special thanks goes out to the (https://stackoverflow.com/questions/77644824/why-operator-in-stdoptional-result-in-a-ub-when-this-is-not-valid)Stackexchange community
I wish you all a wonderful day! Stay safe :)
c++
Other Videos By Peter Schneider
Tags:
c++