Class inheritance (final keyword)


I wanted to update my code to use the lastest juce tree, but i can’t compile any of the luabind/lua code i’m using that tries to inherit from the File class as it’s marked final, i don’t know about other classes (i’m stuck with this one). Is there a way around that ?


I am not sure if there’s an easy solution for your problem. (Apart from just editing the JUCE source files yourself to remove the final keyword.) I initially had the same problem with the sol2 Lua binding library. Fortunately the sol2 developer was able to fix it on his side.

At least JUCE String, ValueTree, Font and Image are final too.