It would be great to have a vector or set containing the names of the fields that were found when decoding the EXIF data.
Not having it is a problem since the fields have default values that could be valid and (I guess that) it is not possible to detect otherwise.
Another option is to use std::optional on the fields, which may be better, but may break old implementations if/when they update TinyEXIF. Also, it requires C++17.
An example where this problem may arise is when 0, despite being unknown, is a possible input value, and developers will not be able to distinguish between the unknown and the missing.
I just added a branch to my fork of this repository that apply the change above, but I'm unsure if I should create a pull request for it.
It would be great to have a vector or set containing the names of the fields that were found when decoding the EXIF data.
Not having it is a problem since the fields have default values that could be valid and (I guess that) it is not possible to detect otherwise.
Another option is to use
std::optionalon the fields, which may be better, but may break old implementations if/when they update TinyEXIF. Also, it requires C++17.An example where this problem may arise is when
0, despite being unknown, is a possible input value, and developers will not be able to distinguish between the unknown and the missing.I just added a branch to my fork of this repository that apply the change above, but I'm unsure if I should create a pull request for it.