Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed with jsoncons 0.177.0 #26

Open
sikmir opened this issue Sep 2, 2024 · 0 comments
Open

Build failed with jsoncons 0.177.0 #26

sikmir opened this issue Sep 2, 2024 · 0 comments

Comments

@sikmir
Copy link

sikmir commented Sep 2, 2024

Deprecated get_with_default was removed in jsoncons 0.177.0, see danielaparker/jsoncons#487.

bt-migrate> /tmp/nix-build-bt-migrate-0-unstable-2023-08-17.drv-0/source/Store/uTorrentStateStore.cpp:187:35: error: no member named 'get_with_default' in 'jsoncons::basic_json<char, jsoncons::order_preserving_policy>'
bt-migrate>     ojson const& targets = resume.get_with_default(RField::Targets, ojson::null());
bt-migrate>                            ~~~~~~ ^
bt-migrate> /tmp/nix-build-bt-migrate-0-unstable-2023-08-17.drv-0/source/Store/DelugeStateStore.cpp:229:43: error: no member named 'get_with_default' in 'jsoncons::basic_json<char, jsoncons::order_preserving_policy>'
bt-migrate>     ojson const& mappedFiles = fastResume.get_with_default(FRField::MappedFiles, ojson::null());
bt-migrate>                                ~~~~~~~~~~ ^
bt-migrate> /tmp/nix-build-bt-migrate-0-unstable-2023-08-17.drv-0/source/Store/uTorrentWebStateStore.cpp:158:34: error: no member named 'get_with_default' in 'jsoncons::basic_json<char, jsoncons::order_preserving_policy>'
bt-migrate>         {TField::UrlList, resume.get_with_default(RField::UrlList, ojson{ojson::array{}})}
bt-migrate>                           ~~~~~~ ^
bt-migrate> /tmp/nix-build-bt-migrate-0-unstable-2023-08-17.drv-0/source/Store/uTorrentWebStateStore.cpp:178:27: error: no member named 'get_with_default' in 'jsoncons::basic_json<char, jsoncons::order_preserving_policy>'
bt-migrate>     box.Trackers = resume.get_with_default(RField::Trackers, ojson{ojson::array{}}).as<decltype(box.Trackers)>();
bt-migrate>                    ~~~~~~ ^
bt-migrate> 1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant