Skip to content

Commit

Permalink
Merge pull request #1265 from mihe/char-string-specializations
Browse files Browse the repository at this point in the history
Declare explicit specializations for `CharStringT`
  • Loading branch information
dsnopek authored Oct 12, 2023
2 parents 55618eb + 6e05b97 commit 292a50d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/godot_cpp/variant/char_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@ class CharStringT {
void copy_from(const T *p_cstr);
};

template <>
const char *CharStringT<char>::get_data() const;

template <>
const char16_t *CharStringT<char16_t>::get_data() const;

template <>
const char32_t *CharStringT<char32_t>::get_data() const;

template <>
const wchar_t *CharStringT<wchar_t>::get_data() const;

typedef CharStringT<char> CharString;
typedef CharStringT<char16_t> Char16String;
typedef CharStringT<char32_t> Char32String;
Expand Down

0 comments on commit 292a50d

Please sign in to comment.