I think it's hard to do at the compiler layer because it's hard to tell if a given "use" is one that matters. Like `f(std::move(x)); x.clear();` could be valid.
-
-
-
True, but it wouldn’t be the first area where C compilers’ warnings get ‘clever’. Actually, maybe the lifetime checker proposals will encompass this.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.