Displaying 1 result from an estimated 1 matches for "afa551f4".
2019 Apr 29
2
How does Twine work?
I'm looking at the documentation on Twine at
http://llvm.org/docs/ProgrammersManual.html#llvm-adt-twine-h and it gives
example code:
void foo(const Twine &T);
...
StringRef X = ...
unsigned i = ...
foo(X + "." + Twine(i));
How exactly does that last line work? Since addition is left associative, I
would expect it to be parsed as (X + ".") ... so it's trying to add