Reputation: 3383
struct S
{
S();
S(S const&) = delete;
};
auto x = [s = S()]{};
It looks like MSVC doesn't apply (mandatory in C++17?) copy elision when building lambda. This breaks some of my code...
Does VC's behavior violate standard?
Upvotes: 4
Views: 192