You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/03/08 00:38:45 UTC

[GitHub] [trafficserver] SolidWallOfCode commented on pull request #8710: Move Sterror class from TsSharedMutex.h to its own include file.

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: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org