template< typename charT >
struct serializer
{
/* ... */
private:
std::basic_string< charT > base64_encode( unsigned charT * bytes, unsigned length );
};
我希望私有成员函数采用无符号的任何字符类型。如果 charT 是 char16_t、char32_t、wchar_t,我希望签名是unsigned that。我怎样才能做到这一点?