소스 검색

Avoid map Copying

Danny Reidenbach 5 년 전
부모
커밋
d4bd067466
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      include/grpcpp/security/alts_context.h

+ 1 - 1
include/grpcpp/security/alts_context.h

@@ -51,7 +51,7 @@ class AltsContext {
   std::string local_service_account() const;
   grpc_security_level security_level() const;
   RpcProtocolVersions peer_rpc_versions() const;
-  std::map<std::string, std::string> peer_attributes();
+  const std::map<std::string, std::string> peer_attributes() const;
 
  private:
   std::string application_protocol_;