Can somebody quote the corresponding paragraph of the C++ standard that says that the order of the std::string
construction and foo()
call is unspecified in the following case:
std::string().append(foo());
I know that there's 5.2.2.8 but it states about function arguments, not several function calls between the same sequence points:
The order of evaluation of function arguments is unspecified