marzer / tomlplusplus

Header-only TOML config file parser and serializer for C++17.
https://marzer.github.io/tomlplusplus/
MIT License
1.53k stars 146 forks source link

fix build with mingw g++ 10 #183

Closed claudeha closed 1 year ago

claudeha commented 1 year ago

What does this change do?

Adds c_str() for compatibility with mingw, which doesn't have wstring overload for open(), but does have a wchar_t * overload.

Is it related to an exisiting bug report or feature request?

Fixes: https://github.com/marzer/tomlplusplus/issues/182

Pre-merge checklist

marzer commented 1 year ago

Thanks!