Re:Care is needed to use C++ std:optional with non-trivial o...
by thom on Friday January 13, 2023 @09:58AM
(#34368588)
I am not sure this is particular to std::optional. There is an awful lot to grasp about values in C++ before you can intuit the right thing to do in every situation:
https://www.youtube.com/watch?v=tH0Z2OvHAd8