MSVC accepts lambda with deleted parameterized ctor while GCC and Clang rejects
Summary The issue at hand is a lambda expression that is accepted by MSVC but rejected by both GCC and Clang. The lambda expression attempts to initialize a captured variable b with an instance of struct C, which has a deleted parameterized constructor. The standard compliant behavior is the one exhibited by GCC and Clang, … Read more