summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/templates/cowdata.hpp
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2023-07-22 09:04:27 -0500
committerGitHub <noreply@github.com>2023-07-22 09:04:27 -0500
commit3162be28e594bf5b17889117670fc6f2d75f2f0c (patch)
tree6791bbf863ba6df551439350e9828cd2818dec2d /include/godot_cpp/templates/cowdata.hpp
parentef5a185dc42e69ace0a2844069e5a8c36929d931 (diff)
parent4df112cd95840313600d0f850ec52a56d0961386 (diff)
downloadredot-cpp-3162be28e594bf5b17889117670fc6f2d75f2f0c.tar.gz
Merge pull request #1150 from dsnopek/charstring-full
Attempt to fully implement CharString
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;