What about "references"?
int& a, b;
or
int &a, &b;
?
So, I think that I'll stick to
int* pa;
int* pb;
i.e. one variable per line.
Additionnaly it makes it easier too lookup for a variable's type when reading the source code because one does not need to walk thru a list to find the variable, it is always after the type. I actually use "auto" to make it even easier to find variable declarations, going as far as grouping such declarations to some extend to make them easier to find.
What about "references"? int& a, b; or int &a, &b; ?
So, I think that I'll stick to int* pa; int* pb;
i.e. one variable per line.
Additionnaly it makes it easier too lookup for a variable's type when reading the source code because one does not need to walk thru a list to find the variable, it is always after the type. I actually use "auto" to make it even easier to find variable declarations, going as far as grouping such declarations to some extend to make them easier to find.
Styles vary.