Hi!
On Jul 14, 2009, at 11:50 PM, Mats Kindahl wrote:
Stewart Smith wrote:
On Wed, Jul 08, 2009 at 10:56:05AM -0700, Brian Aker wrote:
1) Don't use "struct" for a struct. This is C++, isn't needed at
all.
The two possible exceptions I kind of like are if it's going over
the wire or to
disk and is __attribute__ packed.
I usually use "struct" for POD, and "class" otherwise. It isn't
required,
however, it is perfectly OK to write a POD using "class" as well.
What I was meaning with the above is that you don't need to use
"struct" as in:
struct Foo x;
"struct" can be omitted.
Cheers,
-Brian
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp