> Marco, I think your style is wrong :) > In C and C++, & and * are part of the variable, not part of the type: > A b, *c, d, &e(b); > That is why they usually go next to the variable and not the type.
I know, and that's how I used to do before, but the Unity style guide is different, see: http://bazaar.launchpad.net/~unity-team/unity/trunk/view/head:/guides/cppguide.xml (recently updated by Tim) http://bazaar.launchpad.net/~unity-team/unity/trunk/revision/2378
So here we use: PointerType* ptr; Object const& obj = ...;
« Back to merge proposal
> Marco, I think your style is wrong :)
> In C and C++, & and * are part of the variable, not part of the type:
> A b, *c, d, &e(b);
> That is why they usually go next to the variable and not the type.
I know, and that's how I used to do before, but the Unity style guide is different, see: bazaar. launchpad. net/~unity- team/unity/ trunk/view/ head:/guides/ cppguide. xml bazaar. launchpad. net/~unity- team/unity/ trunk/revision/ 2378
http://
(recently updated by Tim) http://
So here we use:
PointerType* ptr;
Object const& obj = ...;