Re:Care is needed to use C++ std:optional with non-trivial o...
by jay-barronville on Friday January 13, 2023 @07:56AM
(#34367068)
Fair point, but I didn’t gather that the author expected anything different; I think he simply wanted to highlight a behavior that may not be that obvious to programmers who aren’t expert C++ programmers (i.e., most programmers).
[ Parent
| on HN ]
Re:Care is needed to use C++ std:optional with non-trivial o...
by kllrnohj on Friday January 13, 2023 @08:29AM
(#34367352)
But why focus on optional then instead of just passing anything by-value? And why not actually dive into when/where this could be of a concern and how to recognize it?
It seems like an article aimed neither at beginners nor experts.