diff options
| author | David Snopek <dsnopek@gmail.com> | 2023-06-20 10:03:15 -0500 |
|---|---|---|
| committer | David Snopek <dsnopek@gmail.com> | 2023-06-22 21:03:30 -0500 |
| commit | 4df112cd95840313600d0f850ec52a56d0961386 (patch) | |
| tree | 80e717904646e51e56b0afea2965bc8b0b7cceec /include/godot_cpp/templates | |
| parent | 2377f7ec7505645a328bec6ec91bf17aa4e471c3 (diff) | |
| download | redot-cpp-4df112cd95840313600d0f850ec52a56d0961386.tar.gz | |
Attempt to fully implement CharString
Diffstat (limited to 'include/godot_cpp/templates')
| -rw-r--r-- | include/godot_cpp/templates/cowdata.hpp | 8 |
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; |
