4 ms·
A (maybe unrelated) question about companies like Google and Faceook, which are C++ powerhouses: how many (if any) of the C++11 or C++14 features have they appr
by discardorama 12y ago
A (maybe unrelated) question about companies like Google and Faceook, which are C++ powerhouses: how many (if any) of the C++11 or C++14 features have they approved for use in production code?
- desdiv 12y agoFor Google open source projects, all C++11 features are approved except the following ones[0]: Functions (other than lambda functions) with trailing return types, e.g. writing auto foo() -> int; instead of int foo();, because of a desire to preserve stylistic consistency with the many existing function declarations. Compile-time rational numbers (<ratio>), because of concerns that it's tied to a more template-heavy interface style. The <cfenv> and <fenv.h> headers, because many compilers do not support those features reliably. Default lambda captures. For Chromium, it's a completely different set of rules[1]. [0] http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#C++11 http://google-styleguide.googlecode.com/svn/trunk/cppguide.h... [1] https://chromium-cpp.appspot.com/ https://chromium-cpp.appspot.com/
- discardorama 12y agoOSS projects would, presumably, have far fewer restrictions than internal revenue-bearing production use?