http://llvm.org/bugs/show_bug.cgi?id=19457
Bug ID: 19457
Summary: diagnose std::move / std::forward confusion
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
For instance:
template<typename T> void f(T &&t) {
std::move(t);
}
Generally, we should warn if a function parameter of type `T &&` (where `T` is
a type template parameter) is the sole argument to a call to `std::move`, and
suggest using `std::forward<T>` instead.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs