Polyman Documentation - v3.0.0
    Preparing search index...

    Function resolveCppStandard

    • Resolves the C++ standard to compile with. Reads cppStandard from the Config.json in the current directory when one exists and falls back to DEFAULT_CPP_STANDARD when the file is missing, unreadable, or does not set the field.

      Returns string

      A value usable as -std=<value>

      If cppStandard is set but is not a recognised standard

      // Config.json: { "cppStandard": "c++20", ... }
      resolveCppStandard(); // 'c++20'