4 ms·
C with classes is what the google c++ style guide mandates: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml http://google-styleguide.googlecode.c
by dmm 13y ago
C with classes is what the google c++ style guide mandates: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml http://google-styleguide.googlecode.com/svn/trunk/cppguide.x...
No exceptions, no boost, no lambda, no rtti, streams only for logging, avoid operator overloading, etc.
- vinkelhake 13y agoThe Google C++ style guide has its quirks, but describing it as "C with classes" is flat out wrong. > no boost Not true, select parts of Boost are available. > no lambda The C++11 features are being rolled in gradually. Lambda expressions are now permitted. > no rtti The guide says "avoid RTTI" and urges the developer to come up with a different design. This is very much in line with C++ best practice overall. There's no ban on RTTI.
- dmm 13y agoVersion 3.274 says: Do not use lambda expressions, or the related std::function or std::bind utilities.
- vinkelhake 13y agoIt's unfortunately not synched with the internal version.
- pjmlp 13y agoI don't agree with Google's style guide, besides they are not perfect.