712 |
|
|
713 |
String ConcatString::evalStr() { |
String ConcatString::evalStr() { |
714 |
// temporaries required here to enforce the associative left (to right) order |
// temporaries required here to enforce the associative left (to right) order |
715 |
|
// ( required for GCC and Visual Studio, see: |
716 |
|
// http://stackoverflow.com/questions/25842902/why-stdstring-concatenation-operator-works-like-right-associative-one |
717 |
|
// Personally I am not convinced that this is "not a bug" of the |
718 |
|
// compiler/STL implementation and the allegedly underlying "function call" |
719 |
|
// nature causing this is IMO no profound reason that the C++ language's |
720 |
|
// "+" operator's left associativity is ignored. -- Christian, 2016-07-14 ) |
721 |
String l = lhs->evalCastToStr(); |
String l = lhs->evalCastToStr(); |
722 |
String r = rhs->evalCastToStr(); |
String r = rhs->evalCastToStr(); |
723 |
return l + r; |
return l + r; |