dimanche 3 mai 2015

Is it possible to declare and pass an array in one line in C++11?

I have a function with the signature void add_world_triangle(float position[3]);

Is it possible for me to call it with a line that looks something like: render_state.add_world_triangle({-0.5, -0.5, -1});?

Aucun commentaire:

Enregistrer un commentaire