Declare explicit specializations for `CharStringT`

(cherry picked from commit 6e05b978b8)
pull/1281/head
Mikael Hermansson 2023-10-12 16:00:48 +02:00 committed by David Snopek
parent e389f7a50c
commit 03ea717742
1 changed files with 12 additions and 0 deletions

View File

@ -120,6 +120,18 @@ protected:
void copy_from(const T *p_cstr); 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<char> CharString;
typedef CharStringT<char16_t> Char16String; typedef CharStringT<char16_t> Char16String;
typedef CharStringT<char32_t> Char32String; typedef CharStringT<char32_t> Char32String;