"docs/en/demo.md" did not exist on "7f3a16a3e30267d90aa911e5714686b7112da0a6"
  • Josiah VanderZee's avatar
    Use c-strings to constant initialize token array · 9f7babc3
    Josiah VanderZee authored
    Since `std::string` has to be dynamically constructed and destructed,
    it could be accessed before initialization or after destruction in a
    multithreaded context. By using constant c-strings instead, we guarantee
    that the array will be valid for the whole lifetime of the program. The
    use of `constexpr` also enforces this requirement.
    
    I have run clang-format on the file to format my changes according to
    CONTRIBUTING.md.
    9f7babc3
token.h 1.82 KB