I'm trying to check if a lambda is noexcept or not
but it looks like noexcept(lambda) doesn't do what I think it should.
auto lambda = [&](Widget& w){
w.build();
};
auto isNoexcept = noexcept(lambda) ? "yes" : "no";
std::cout << "IsNoexcept: " << isNoexcept << std::endl;
This prints "IsNoexcept: yes" even through the lambda is not marked noexcept.
What am I doing wrong here?