DepInjoy opened a new issue #1198:
URL: https://github.com/apache/incubator-brpc/issues/1198


   #**Describe the bug (描述bug)**
   0.9.7-rc03进行开发 
当然在工程中也使用了其他的第三方库比如gutil-1.0,这两个库都对一些常用的数值范围进行了定义,比如uint8Max和uint8Min,他们都是static便令
 这样便以为着如果在头文件中同时包含他们可能会出现重复定义的问题。
   
   **To Reproduce (复现方法)**
   创建一个源代码 同时包含BRPC的butil\basictypes.h以及gutil-1.0库的gutil/port.h文件。编译便可以复现
   
   **Expected behavior (期望行为)**
   从代码规范的角度来说,静态变量是需要谨慎的,可以将他们限制在某一个命名区间内,来在一定程度上限制他们的作用范围。
   
   **Versions (各种版本)**
   OS:Linux
   Compiler: g++
   brpc:0.9.7-rc03
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
![冲突](https://user-images.githubusercontent.com/41673122/89606714-5117bb00-d8a3-11ea-8b0f-bd9e04f1cc29.png)
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to