Skip to content

Commit

Permalink
Make MSVC happy with TemporaryUnsealer
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Dec 5, 2023
1 parent d398f64 commit 30ab9e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ogr/ogr_feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ class CPL_DLL OGRFieldDefn
m_poFieldDefn->Unseal();
}

TemporaryUnsealer(TemporaryUnsealer &&) = default;
TemporaryUnsealer &operator=(TemporaryUnsealer &&) = default;

~TemporaryUnsealer()
{
m_poFieldDefn->Seal();
Expand Down Expand Up @@ -410,6 +413,9 @@ class CPL_DLL OGRGeomFieldDefn
m_poFieldDefn->Unseal();
}

TemporaryUnsealer(TemporaryUnsealer &&) = default;
TemporaryUnsealer &operator=(TemporaryUnsealer &&) = default;

~TemporaryUnsealer()
{
m_poFieldDefn->Seal();
Expand Down

0 comments on commit 30ab9e7

Please sign in to comment.