What is this compiler error when using a lambda as a template parameter?
问题 Edit: This has been reported as a VS2012 C++ compiler bug on Microsoft Connect (link). Nov. 11, 2014: Microsoft has responded saying the fix for this bug should show up in the next major release of Visual C++. I've been struggling with a VS2012 compiler error message I don't understand, so I trimmed down the problem to what seems like the bare minimum. I'm building the following main.cpp using VS2012: #include <utility> template <typename T> struct A { T x; A(A&& other) : x(std::move(other.x)