throway2kl4223
Re:Care is needed to use C++ std:optional with non-trivial objects
on Friday January 13, 2023 @09:59AM (#34368607)
It's an immediate red flag to see `T::T(T)` used anywhere for non-trivial objects or PODs or something not word-size.
Typically C++ requires a lot of plumbing to use value semantics with `std::move` everywhere and `std::forward`.
I don't have patience for it anymore, so I just use Rust which is move by default.