Hasty Briefsbeta

Bilingual

Banned C++ Features in Chromium

3 months ago
  • #Programming
  • #Chromium
  • #C++
  • Chromium C++ style guide outlines supported and banned C++ language and library features.
  • New C++ standards are not immediately adopted; features are evaluated and allowed or banned based on toolchain support and discussion.
  • Proposals to change feature status can be submitted via email to [email protected], including rationale and previous discussions.
  • Third-party libraries may use banned features internally, but must meet Chromium's security and compiler support standards.
  • Specific C++11, C++17, C++20, and C++23 language and library features are listed as allowed or banned, with alternatives provided where applicable.
  • Abseil library features are also categorized, with some banned due to code size concerns or availability of alternatives in Chromium's base library.
  • Guidelines emphasize using Chromium's base library over Abseil or standard library features where conflicts or better alternatives exist.