summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/templates/cowdata.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/godot_cpp/templates/cowdata.hpp')
-rw-r--r--include/godot_cpp/templates/cowdata.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/godot_cpp/templates/cowdata.hpp b/include/godot_cpp/templates/cowdata.hpp
index 1753687..18320d8 100644
--- a/include/godot_cpp/templates/cowdata.hpp
+++ b/include/godot_cpp/templates/cowdata.hpp
@@ -32,13 +32,13 @@
#define GODOT_COWDATA_HPP
#include <godot_cpp/classes/global_constants.hpp>
-#include <godot_cpp/core/class_db.hpp>
#include <godot_cpp/core/error_macros.hpp>
#include <godot_cpp/core/math.hpp>
#include <godot_cpp/core/memory.hpp>
#include <godot_cpp/templates/safe_refcount.hpp>
#include <cstring>
+#include <new>
namespace godot {
@@ -48,6 +48,9 @@ class Vector;
template <class T, class V>
class VMap;
+template <class T>
+class CharStringT;
+
// Silence a false positive warning (see GH-52119).
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
@@ -62,6 +65,9 @@ class CowData {
template <class TV, class VV>
friend class VMap;
+ template <class TS>
+ friend class CharStringT;
+
private:
mutable T *_ptr = nullptr;