【发布时间】:2014-06-21 12:27:05
【问题描述】:
template< typename charT >
struct serializer
{
/* ... */
private:
std::basic_string< charT > base64_encode( unsigned charT * bytes, unsigned length );
};
我希望私有成员函数采用 unsigned 任何字符类型。如果 charT 是 char16_t、char32_t、wchar_t,我希望签名是 unsigned that。我该怎么做?
【问题讨论】: