RiversJin commented on PR #2627: URL: https://github.com/apache/kvrocks/pull/2627#issuecomment-2448925931
> > Since std::string_view cannot be implicitly converted to std::string, and I want to implement RESP_OK as a constexpr variable, I changed it to use constexpr char[].由于 std::string_view 无法隐式转换为 std::string,而且我想将 RESP_OK 实现为 constexpr 变量,因此我将其改为使用 constexpr char[]。 > > This not fixes the problem, we can either use `const static inline std::string`, or just cast once on "Reply". `const char[]` to `std::string` also applies copy...这并不能解决问题,我们可以使用 `const static inline std::string` ,或者只在"Reply"上进行一次转换。 `const char[]` 对 `std::string` 也适用于复制... Ok u're right, I've done -- 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]
