Skip to content

Commit

Permalink
declare EbmlDummy constructor in cpp file
Browse files Browse the repository at this point in the history
Fixes compilation on GCC7-9 for some reason.
  • Loading branch information
neheb committed Jan 31, 2024
1 parent 1dca28c commit 4c19701
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ebml/EbmlDummy.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace libebml {

class EBML_DLL_API EbmlDummy : public EbmlBinary {
public:
EbmlDummy(const EbmlId & aId) : EbmlBinary(EbmlDummy::ClassInfos), DummyId(aId) {}
EbmlDummy(const EbmlId & aId);

bool IsDummy() const override {return true;}
bool IsDefaultValue() const override {return true;}
Expand Down
2 changes: 2 additions & 0 deletions src/EbmlDummy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ static constexpr EbmlDocVersion AllEbmlVersions{};

DEFINE_EBML_CLASS_ORPHAN(EbmlDummy, 0xFF, "DummyElement", AllEbmlVersions )

EbmlDummy::EbmlDummy(const EbmlId & aId) : EbmlBinary(EbmlDummy::ClassInfos), DummyId(aId) {}

const EbmlId EbmlDummy::DummyRawId = Id_EbmlDummy;

} // namespace libebml

0 comments on commit 4c19701

Please sign in to comment.