From e54c89e1e4f678ed2068a9ba97d9adea685a52ab Mon Sep 17 00:00:00 2001 From: "Mark D. Roth" Date: Sat, 24 Sep 2022 00:28:22 +0000 Subject: [PATCH] attempt work-around for MSVC bug --- .../ext/filters/rbac/rbac_service_config_parser.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/core/ext/filters/rbac/rbac_service_config_parser.cc b/src/core/ext/filters/rbac/rbac_service_config_parser.cc index 6223337ba7f..8975c65f339 100644 --- a/src/core/ext/filters/rbac/rbac_service_config_parser.cc +++ b/src/core/ext/filters/rbac/rbac_service_config_parser.cc @@ -264,6 +264,12 @@ struct RbacConfig { Rbac::Permission permission; + // Work around for MSVC bug + // https://developercommunity.visualstudio.com/t/C2280-when-modifying-a-vector-containing/377449 + Permission() = default; + Permission(const Permission&) = delete; + Permission(Permission&& other) noexcept = default; + static std::vector> MakeRbacPermissionList(std::vector&& permission_list) { std::vector> permissions; @@ -394,6 +400,12 @@ struct RbacConfig { Rbac::Principal principal; + // Work around for MSVC bug + // https://developercommunity.visualstudio.com/t/C2280-when-modifying-a-vector-containing/377449 + Principal() = default; + Principal(const Principal&) = delete; + Principal(Principal&& other) noexcept = default; + static std::vector> MakeRbacPrincipalList(std::vector&& principal_list) { std::vector> principals;