> seems to run counter to every coding guideline
C++ wouldn't be C++ if it didn't allow a programmer to intentionally footgun oneself.
Typically I encounter a desire to footgun myself when I have an RAII variable with side effects on destruction I'd like to intentionally trigger. Specifically something that locks a resource and I need to guarantee it'll eventually be released, so I wrap it in a guard class so I can't forget to manually release control.
The only other alternative is std::optional which is stack-allocated and provides a reset method, but this requires pulling in the STL. This isn't always possible in low-level code.