diff options
author | Kevin Smith <git@kismith.co.uk> | 2022-07-31 11:46:35 +0100 |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2022-07-31 11:54:40 +0100 |
commit | fd8173f109daea242a9af0953e52875b302de322 (patch) | |
tree | 2e10f681cc7a0dc089cf5762441ef49eb6123b39 | |
parent | 9aa129caabb9f26bd1b1822ba823c3d10a7f8fa5 (diff) | |
download | redot-cpp-fd8173f109daea242a9af0953e52875b302de322.tar.gz |
Allow GDCLASS in own namespaces
The unqualified ClassDB friending was causing (at least for me on
VS2022) an implicit forward declaration of ClassDB in the namespace
of my class, instead of using the godot namespaced one. By qualifying
the namespace, this compiles for me.
Test-Information:
My project builds now.
-rw-r--r-- | include/godot_cpp/classes/wrapped.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp index bbe47c4..986edb1 100644 --- a/include/godot_cpp/classes/wrapped.hpp +++ b/include/godot_cpp/classes/wrapped.hpp @@ -67,7 +67,7 @@ public: #define GDCLASS(m_class, m_inherits) \ private: \ void operator=(const m_class &p_rval) {} \ - friend class ClassDB; \ + friend class ::godot::ClassDB; \ \ protected: \ virtual const char *_get_extension_class() const override { \ |