Код: Выделить всё
constexpr auto f =
[](auto&& x, auto&&... someOtherStuff) noexcept(noexcept(x)) {};
Код: Выделить всё
(3): error C2760: syntax error: 'someOtherStuff' was unexpected here; expected ')'
Код: Выделить всё
constexpr auto g =
[](auto&&... someOtherStuff) noexcept(noexcept(int)) {}; //< ICE
Подходит ли f выше для C++? Он (и ICE) исчезает с /std:c++20 или с другими компиляторами.
Подробнее здесь: https://stackoverflow.com/questions/793 ... da-in-msvc