Skip to content

Comment on In the C++ bag of tricks: scoped locksparent

Comments

The 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.

Version 3.274 says:

Do not use lambda expressions, or the related std::function or std::bind utilities.

It's unfortunately not synched with the internal version.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.