4 ms·C++ has nodiscard which is super useful for scenarios like this where ownership can be tricky.by ryanianian 4y agoC++ has nodiscard which is super useful for scenarios like this where ownership can be tricky.