NanoMichael / MicroTeX

A dynamic, cross-platform, and embeddable LaTeX rendering library
MIT License
399 stars 66 forks source link

Add support for C++20. #137

Closed ghost closed 1 year ago

ghost commented 1 year ago
  1. Tweak CMakeLists.txt to use C++20.
  2. Add std::to_string(fmt.chr) for wide character font output.
  3. Add codecvt call to convert wstring to string where needed.

Closes https://github.com/NanoMichael/MicroTeX/issues/136

sp1ritCS commented 1 year ago

@lockywolf as Nano already said, the tree in the current master branch is deprecated/will be deprecated soon. I've just checked, and openmath also doesn't build on c++20 (a bunch of template-id not allowed for destructor errors originating from lib/utils/dict_tree.h:64). If you have the time it'd be great if you could look into that aswell.