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

Is there any way to know if the object has changed? #1164

Closed
Quetzalfir opened this issue Jul 16, 2018 · 2 comments
Closed

Is there any way to know if the object has changed? #1164

Quetzalfir opened this issue Jul 16, 2018 · 2 comments
Labels
kind: question solution: proposed fix a fix for the issue has been proposed and waits for confirmation

Comments

@Quetzalfir
Copy link

I would want to use the library to save the settings of my program, the user can modify this settings, but I don't think user change the configuration all the time, so I would want to know if there is a way to know if the object has changed in order to save work and don't have to save the whole object every time.

A new field, the value of a field has changed, things like that.

@nlohmann
Copy link
Owner

The diff function should do this job.

@nlohmann nlohmann added kind: question solution: proposed fix a fix for the issue has been proposed and waits for confirmation labels Jul 16, 2018
@Quetzalfir
Copy link
Author

thanks, that helps, nice library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants