Enable `/std:c++17` by default for the Windows cc toolchain

Copybara Import from https://github.com/bazelbuild/rules_cc/pull/440

BEGIN_PUBLIC
Enable `/std:c++17` by default for the Windows cc toolchain (#440)

Context: https://github.com/bazelbuild/bazel/issues/26523#issuecomment-3062496169

Closes #440
END_PUBLIC

COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_cc/pull/440 from bazelbuild:meteorcloudy-patch-6 22a0f1ac48fcb5bf32e1453b52c285ff7bff0049
PiperOrigin-RevId: 783048271
Change-Id: I4b7f9092a41d3af956d78ed4f4324104c30c0b2d
diff --git a/cc/private/toolchain/windows_cc_toolchain_config.bzl b/cc/private/toolchain/windows_cc_toolchain_config.bzl
index af17bb4..8102947 100644
--- a/cc/private/toolchain/windows_cc_toolchain_config.bzl
+++ b/cc/private/toolchain/windows_cc_toolchain_config.bzl
@@ -751,6 +751,7 @@
                     flag_groups = [
                         flag_group(
                             flags = [
+                                "/std:c++17",
                                 "/DNOMINMAX",
                                 "/D_WIN32_WINNT=0x0601",
                                 "/D_CRT_SECURE_NO_DEPRECATE",