Xazax-hun wrote: A moved from object could be reinitalized: ``` void test() { std::vector<std::string_view> abc; std::string b; add(abc, std::move(b)); b = std::string(); // now b can be used again. } ````
That being said, maybe this is rare enough that we could have an opt-in warning. But we definitely cannot have something that is on by default. https://github.com/llvm/llvm-project/pull/125520 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits