mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-24 14:33:02 +02:00
The error occurred when adding a new fields, for example showForwards, to the AyuGramSettings class. The NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT macro was used for serialization, which works correctly only when the number of parameters is up to 64. After extending the structure, the macro failed to expand and the compiler started generating messages about undefined identifiers like NLOHMANN_JSON_TO. The fix was to replace the problematic macro with manual implementation of to_json and from_json functions. For each field, it is now explicitly specified how to serialize and deserialize it, which eliminates the limitation on the number of arguments. Additionally, auxiliary macros NLOHMANN_JSON_TO, NLOHMANN_JSON_FROM and NLOHMANN_JSON_FROM_WITH_DEFAULT have been declared in case they are absent in the header file used. More info: https://json.nlohmann.me/api/macros/nlohmann_define_type_intrusive/#notes |
||
---|---|---|
.. | ||
data | ||
features | ||
libs | ||
ui | ||
utils | ||
ayu_constants.h | ||
ayu_infra.cpp | ||
ayu_infra.h | ||
ayu_lang.cpp | ||
ayu_lang.h | ||
ayu_settings.cpp | ||
ayu_settings.h | ||
ayu_state.cpp | ||
ayu_state.h | ||
ayu_url_handlers.cpp | ||
ayu_url_handlers.h | ||
ayu_worker.cpp | ||
ayu_worker.h |