I'm wondering about the execution order of function calls given in an initializer list:
#include <iostream>
class ExpandWithConstructor
{
public:
template < typename ... T>
ExpandWithConstructor( T... args) {}
};
template < typename T>
T Print( T t )
{
std::cout << t << std::endl;
return t;
}
int main()
{
ExpandWithConstructor{ Print(1.1),Print("Hallo"),Print('c')};
}
Executing the code gives:
c
Hallo
1.1
Q: Is the reverse order of functions defined in the standard or is there no guarantee for the ordering?
I use g++ 4.8.1.