[LLVMbugs] [Bug 19457] New: diagnose std::move / std::forward confusion

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 16 17:09:06 PDT 2014


            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: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: delesley at google.com, dgregor at apple.com,
                    llvmbugs at cs.uiuc.edu
    Classification: Unclassified

For instance:

  template<typename T> void f(T &&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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140417/ccd24e21/attachment.html>

More information about the llvm-bugs mailing list