Is it ok to call a function in constructor initializer list?
That’s perfectly fine and normal. p_Builder was initialized before it.
That’s perfectly fine and normal. p_Builder was initialized before it.
First, I would recommend looking at the following talk by Herb Sutter, in which he gives some recommendations about the subject. The brace-initialization discussion starts at around 23:00. When you are talking about primitive data types, all 3 yield the same result. I personally prefer sticking with the old int x = 0 syntax, but … Read more
You can do it like: string Camnr, Klantnr, Ordernr, Bonnr, Volgnr;// and so on. Camnr = Klantnr = Ordernr = Bonnr = Volgnr = string.Empty; First you have to define the variables and then you can use them.