My boys! We love testing, don't we? More #cpp / #cxx questions for you to sharpen your wits and train your legalese on. Because when it comes to regulations, it's important to not leave anything to chance, even more now that the military says they want to loooooove C++ (in a "why can't you be like Rust?" way).
So:
How to make sure the caller of your function does not ignore the result?
[ ] Mark the function as "[[nodiscard]]", as attributes are totally mandatory
[ ] Return the result as an exception, via "throw result;"
[ ] Add a // comment explaining to not ignore, and let the client's IDE do the rest
[ ] Return the result via an out-parameter, so the user has no option but to be aware of it
deleted by creator