Closed mgcooper closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 90.53%. Comparing base (
79ea9dd
) to head (4bdb755
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@mgcooper I made an alternative fix in #117. Please let me know if this doesn't work for you.
@dbaston Works for me. Would just mention the small adjustment to test_feature
around line 34 that was also in the pull request, it just casts the test value x
to uint64_t to get rid of a compiler complaint about ambiguity, the test doesn't fail.
Hmm, I would have through that removing void set(const std::string& name, std::size_t value)
would remove the ambiguity. Could you please paste the compiler warning here if it's handy?
Sorry I misremembered ... it's an Intellisense warning so not actually a compiler warning ... here's the screen shot:
This addresses the compilation error related to the
set
function in the GDALFeature derived class traced to theoverride
specifier. The base class does not declare a matching virtual function, resulting in a compilation error.I wasn't sure about the intended behavior, but I tried adding a virtual function in feature.h (they are commented out) and got more errors, so I commented them out and removed the override specifier and did not get errors, so I went with that.
I also added a patch to
test_feature
to get it to pass.Changes:
override
specifier from theset
function in GDALFeature.Modified Code:
Testing:
override
keyword was resolved.test_feature
failed initially with "ambiguity" errors, so I added a little patch to cast to int, which might not be consistent with the intended behavior.exactextract
for my custom domain and confirmed method "mean" returned the correct result compared to a brute-force exact remapping method (not a formal test just mentioning that I confirmed the code worked in a minimal way after the proposed changes were made)fixes #113