{"json_modified": "2016-08-20T01:21:08.916765", "uuid": "7166824b-73ed-445c-808e-18ad498a4adf", "title": "Using C++ in Mozilla code", "url": "/en-US/docs/Using_CXX_in_Mozilla_code", "tags": [], "translations": [{"uuid": "0abdc1ee-21fd-4420-82cc-2c01aac3e587", "title": "Utiliza\u00e7\u00e3o de C++ no c\u00f3digo da Mozilla", "url": "/pt-PT/docs/Utiliza%C3%A7%C3%A3o_CXX_no_c%C3%B3digo_da_Mozilla", "tags": [], "summary": "Mozilla code only uses a subset of C++. Runtime type information (RTTI) is disabled, as it tends to cause a very large increase in codesize. This means that dynamic_cast
, typeid()
and <typeinfo>
cannot be used in Mozilla code. Also disabled are exceptions; do not use try
/catch
or throw any exceptions. Libraries that throw exceptions may be used if you are willing to have the throw instead be treated as an abort.", "localization_tags": ["inprogress"], "locale": "pt-PT", "last_edit": "2016-06-07T17:07:50", "review_tags": []}], "modified": "2016-08-20T01:21:08", "label": "Using C++ in Mozilla code", "localization_tags": [], "locale": "en-US", "id": 80243, "last_edit": "2016-07-19T23:53:07", "summary": "Mozilla code only uses a subset of C++. Runtime type information (RTTI) is disabled, as it tends to cause a very large increase in codesize. This means that dynamic_cast
, typeid()
and <typeinfo>
cannot be used in Mozilla code. Also disabled are exceptions; do not use try
/catch
or throw any exceptions. Libraries that throw exceptions may be used if you are willing to have the throw instead be treated as an abort.", "sections": [{"id": "C_language_features", "title": "C++ language features"}, {"id": "Notes", "title": "Notes"}, {"id": "C_and_Mozilla_standard_libraries", "title": "C++ and Mozilla standard libraries"}, {"id": "Data_structures", "title": "Data structures"}], "slug": "Using_CXX_in_Mozilla_code", "review_tags": []}