[PATCH] D24880: Add StringExtras join_items function
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 26 20:20:45 PDT 2016
zturner added a comment.
In https://reviews.llvm.org/D24880#553444, @mehdi_amini wrote:
> What about: ```auto Result = (Twine(foo()) + bar() + baz()).str()```?
Hadn't thought of that, but that also doesn't work of `foo()`, `bar()`, and `baz()` are of type `const char *`. In that case you need to invoke `operator +=` on the `std::string`
https://reviews.llvm.org/D24880
More information about the llvm-commits
mailing list