Skip to content

Commit

Permalink
Merge pull request #9177 from OSGeo/backport-9171-to-release/3.8
Browse files Browse the repository at this point in the history
[Backport release/3.8] PDS: fix compilation with Emscripten version 3.1.7
  • Loading branch information
rouault authored Feb 1, 2024
2 parents a8818c4 + 078b323 commit 001b48f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
18 changes: 2 additions & 16 deletions frmts/pds/pds4dataset.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,28 +104,14 @@ class PDS4TableBaseLayer CPL_NON_FINAL : public OGRLayer
virtual void RefreshFileAreaObservational(CPLXMLNode *psFAO) = 0;
};

/************************************************************************/
/* ==================================================================== */
/* PDS4EditableSynchronizer */
/* ==================================================================== */
/************************************************************************/

template <class T>
class PDS4EditableSynchronizer final : public IOGREditableLayerSynchronizer
{
public:
PDS4EditableSynchronizer() = default;

OGRErr EditableSyncToDisk(OGRLayer *poEditableLayer,
OGRLayer **ppoDecoratedLayer) override;
};

/************************************************************************/
/* ==================================================================== */
/* PDS4FixedWidthTable */
/* ==================================================================== */
/************************************************************************/

template <class T> class PDS4EditableSynchronizer;

class PDS4FixedWidthTable CPL_NON_FINAL : public PDS4TableBaseLayer
{
friend class PDS4EditableSynchronizer<PDS4FixedWidthTable>;
Expand Down
10 changes: 10 additions & 0 deletions frmts/pds/pds4vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2573,6 +2573,16 @@ bool PDS4DelimitedTable::InitializeNewLayer(const OGRSpatialReference *poSRS,
/* ==================================================================== */
/************************************************************************/

template <class T>
class PDS4EditableSynchronizer final : public IOGREditableLayerSynchronizer
{
public:
PDS4EditableSynchronizer() = default;

OGRErr EditableSyncToDisk(OGRLayer *poEditableLayer,
OGRLayer **ppoDecoratedLayer) override;
};

template <class T>
OGRErr
PDS4EditableSynchronizer<T>::EditableSyncToDisk(OGRLayer *poEditableLayer,
Expand Down

0 comments on commit 001b48f

Please sign in to comment.