godotengine / godot-cpp

C++ bindings for the Godot script API
MIT License
1.69k stars 528 forks source link

Fix undefined symbol error on Linux with virtual methods that take `Node *` arguments #1484

Closed dsnopek closed 3 months ago

dsnopek commented 3 months ago

Fixes https://github.com/godotengine/godot-cpp/issues/1480

This changes const to constexpr in some definitions of the GetTypeInfo template (we were using constexpr already in a few).

We should probably make the same changes to Godot itself as well, since that's where this code was copied from in the first place.

Kehom commented 3 months ago

It worked! Thanks for the fix!