From fd8173f109daea242a9af0953e52875b302de322 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Sun, 31 Jul 2022 11:46:35 +0100 Subject: [PATCH] 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. --- include/godot_cpp/classes/wrapped.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp index bbe47c48..986edb15 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 { \