attempt work-around for MSVC bug

pull/31395/head
Mark D. Roth 2 years ago
parent 858e399e3b
commit e54c89e1e4
  1. 12
      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<std::unique_ptr<Rbac::Permission>>
MakeRbacPermissionList(std::vector<Permission>&& permission_list) {
std::vector<std::unique_ptr<Rbac::Permission>> 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<std::unique_ptr<Rbac::Principal>>
MakeRbacPrincipalList(std::vector<Principal>&& principal_list) {
std::vector<std::unique_ptr<Rbac::Principal>> principals;

Loading…
Cancel
Save