SolidWallOfCode commented on pull request #8710:
URL: https://github.com/apache/trafficserver/pull/8710#issuecomment-1061286490


   Once we have libswoc, we could do this with
   ```
   class StrError {
     ts::LocalBufferWriter<256> _buff;
     StrError(int errno) {
       _buff.print("{::l}\0", ts::bwf::Errno(err)); // 'l' means "long" e.g. 
the string
     }
     char const* c_str() { return _buff.data(); }
   };
   ```
   


-- 
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]


Reply via email to