Felix-Gong opened a new pull request, #3346: URL: https://github.com/apache/brpc/pull/3346
## Summary - Fix `std::any` redeclaration error when building tests with C++17 and `-Dprivate=public` - The existing `sstream_workaround.h` already handles the same issue for `<sstream>`, but does not protect `<any>` Fixes #3345 ## Test plan - Verified on x86 (GCC 13.3) and RISC-V (GCC 15.1) that the error reproduces with C++17 + `-Dprivate=public` - Verified the fix resolves the issue on both platforms - C++11/14 are unaffected (no `std::any`) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
