You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "bkietz (via GitHub)" <gi...@apache.org> on 2025/04/22 20:23:18 UTC

Re: [I] [C++] Rename arrow::util::StringBuilder and move to internal namespace [arrow]

bkietz commented on issue #46207:
URL: https://github.com/apache/arrow/issues/46207#issuecomment-2822392479

   It's worth noting that `arrow::util::StringBuilderRecursive()` (and possibly `arrow::util::StringBuilder` itself) is a helper function which is no longer necessary in C++17 at all; we can use fold expressions to achieve the same result:
   
   ```c++
     template <typename... Args>
     static Status FromArgs(StatusCode code, const Args&... args) {
       std::stringstream ss;
       (ss << ... << args);
       return Status(code, ss.str());
     }
   ```


-- 
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@arrow.apache.org

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