#1 Should be your first choice, even in C++98.
#2 can only be slower than 1.
Thanks for the prompt reply!
so should I always go for #1 when I am just initializing stuff in a function/constructor even if its like 10 things that need to be initialized?
Also, if it is a short list of things such as I posted above, should I do it in the header or always put it in the cpp?
Last edited on