Changes between Version 1 and Version 2 of C++Features


Ignore:
Timestamp:
Aug 12, 2025, 2:29:07 PM (2 months ago)
Author:
pett
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • C++Features

    v1 v2  
    77        for (auto node: ast.nodes) {
    88
    9         auto distance = (ast.choice == 0 ? eval_real_number : eval_integer)(*ast.nodes[1]);
     9        auto distance = (ast.choice == 0 ? eval_real_number : eval_integer)(*ast.nodes![1]);
     10
     11        for (auto i = 1u; I < ast.nodes.size(); ++i) {
    1012
    1113== Initializer Lists ==
     
    1618
    1719[https://www.stroustrup.com/C++11FAQ.html#init-list Discussion]
     20
     21== Raw Strings ==
     22
     23For more easily specifying strings that have lots of special characters (think newlines and backslashes) such as regular expressions or parser grammars.
     24
     25The basic syntax is:
     26
     27        R"(''some complex string'')"