Skip to main content
Post Made Community Wiki
Source Link
jkeys
  • 4k
  • 11
  • 41
  • 63

I name the actual members with trailing underscores, so I do this:

Foo(int bar) : bar_(bar) { } 

The reason is so I can use getter functions without anything like getBar() (bar() is better).