title: C++ Array Initialization in Function Call or Constructor Call
body: <p>This question is related to the post <a href="https://stackoverflow.com/questions/2627223/c-template-class-constructor-with-variable-arguments">here</a>. Is it possible to initialize an array in a function call or constructor call? For example, class foo's constructor wants an array of size 3, so I want to call foo( { 0, 0, 0 } ). I've tried this, and it does not work. I'd like to be able to initialize objects of type foo in other objects' constructor initialization lists, or initialize foo's without first creating a separate array. Is this possible?</p>