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

GDALFeature: Remove unneeded size_t set overload #117

Merged
merged 1 commit into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/gdal_feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,6 @@ class GDALFeature : public Feature
OGR_F_SetFieldInteger64List(m_feature, field_index(name), static_cast<int>(value.size), reinterpret_cast<const GIntBig*>(value.data));
}

void set(const std::string& name, std::size_t value) override
{
if (value > static_cast<std::size_t>(std::numeric_limits<std::int64_t>::max())) {
throw std::runtime_error("Value too large to write");
}
OGR_F_SetFieldInteger64(m_feature, field_index(name), static_cast<std::int64_t>(value));
}

void set(const std::string& name, std::string value) override
{
OGR_F_SetFieldString(m_feature, field_index(name), value.c_str());
Expand Down
Loading