Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You pretty much need lifetime tracking to make it foolproof.

A quick dirty hack would be to have a static analyzer drop B from the symbol table after it sees std::move and give a warning, but that obviously wont catch other references to it, but maybe it will catch the low hanging fruit.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: