In standard c++ we can write :
int myArray[5] = {12, 54, 95, 1, 56};
I would like to write the same thing with a template :
This becomes possible in C++0x using initializer lists. Currently, there is no way to do this.
The closest you can get without this is to use Boost.Assign.