Implement LWG-3617: function/packaged_task deduction guides and deducing this by frederick-vs-ja · Pull Request #2966 · microsoft/STL (original) (raw)

Fixes #2952.

I think we should detect the predefined core language feature-test macro __cpp_explicit_this_parameter, but MSVC didn't define it in VS2022 17.2 and 17.3, so I filed DevCom-10107077.

I can imagine the future where there will be "C++17/20 with explicit object parameters" dialects, so I guess we should not restrict these library changes to C++23, and just use _HAS_CXX17 && defined(__cpp_explicit_this_parameter) to enable these changes.