-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
state.cpp: update to new toml11-devel-4.0.0 version API
Adds TC - `type_config` which is required for conversion. https://toruniina.github.io/toml11/docs/features/value/#converting-to-tomlvalue The `toml::format` was changed and no longer accepts template args: https://toruniina.github.io/toml11/docs/reference/serializer/ Use `ordered_value` to preserve order, otherwise `std::unordered_map` is used internally which may result in different order on each run which may casue failing tests. It was necessary to specify the formating for some values because the tests rely on it. However even with the same formatting there still are changes (spacing is different), update the tests to pass for both toml11 versions.
- Loading branch information
1 parent
7b2a6e5
commit 1746eab
Showing
2 changed files
with
103 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters