From 6e05b978b8a824a892db328d12b2e418b4ac5eab Mon Sep 17 00:00:00 2001 From: Mikael Hermansson Date: Thu, 12 Oct 2023 16:00:48 +0200 Subject: [PATCH] Declare explicit specializations for `CharStringT` --- include/godot_cpp/variant/char_string.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/godot_cpp/variant/char_string.hpp b/include/godot_cpp/variant/char_string.hpp index f8f51696..fef6a718 100644 --- a/include/godot_cpp/variant/char_string.hpp +++ b/include/godot_cpp/variant/char_string.hpp @@ -120,6 +120,18 @@ protected: void copy_from(const T *p_cstr); }; +template <> +const char *CharStringT::get_data() const; + +template <> +const char16_t *CharStringT::get_data() const; + +template <> +const char32_t *CharStringT::get_data() const; + +template <> +const wchar_t *CharStringT::get_data() const; + typedef CharStringT CharString; typedef CharStringT Char16String; typedef CharStringT Char32String;