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

store the info about having a default values in EbmlCallbacks #168

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

robUx4
Copy link
Contributor

@robUx4 robUx4 commented Jan 27, 2024

So it doesn't have to be a virtual class anymore and can be a real static constexp.

Necessary to build libmatroska with Matroska-Org/libebml#228.

@robUx4 robUx4 added the bug label Jan 27, 2024
Copy link
Contributor

@mbunkus mbunkus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fails to build with current libEBML/libMatroska master:

lib/libmatroska/src/KaxSemantic.cpp:144:1: fatal error: constexpr variable cannot have non-literal type 'const libebml::EbmlCallbacks'
DEFINE_MKX_BINARY_CONS(KaxSimpleBlock, 0xA3, 1, KaxCluster, "SimpleBlock", VERSION_SINCE_V2)
^
lib/libmatroska/matroska/KaxDefines.h:48:47: note: expanded from macro 'DEFINE_MKX_BINARY_CONS'
    constexpr const libebml::EbmlCallbacks a::ClassInfos(a::Create, Id_##a, false, false, e, Context_##a, versions);
                                              ^
lib/libebml/ebml/EbmlElement.h:333:13: note: 'EbmlCallbacks' is not literal because it has a non-trivial destructor
    virtual ~EbmlCallbacks() = default;
            ^
lib/libebml/ebml/EbmlElement.h:333:13: note: destructor for 'EbmlCallbacks' is not trivial because it is virtual

clang++ 16

@robUx4
Copy link
Contributor Author

robUx4 commented Jan 28, 2024

It is expected to fail to build without Matroska-Org/libebml#228.

So it doesn't have to be a virtual class anymore and can be a real static constexp.
@mbunkus mbunkus merged commit 67a8ada into Matroska-Org:master Jan 28, 2024
0 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants