I was surprised to find in Visual Studio 2012 Update 1 the following does not compile anymore:
[](unique_ptr<int>){};
Compiler error states it can't access the private copy constructor of unique_ptr. The above worked just fine in Visual Studio 2010.
It also compiles just fine in gcc 4.7.2
Is this a known bug, or is this actually expected behavior? I could not find anything on Microsoft Connect.
EDIT: I have just updated to Visual Studio 2012 Update 2, the issue still occurs.
EDIT2: I have filed a bug report on Microsoft Connect, you are welcome to upvote it if it affects you too.