Code: Select all
String& assign(size_type num, utf32 code_point)
{
if (num == npos)
throw std::length_error("Code point count can not be 'npos'");
grow(num);
setlen(num);
utf32* p = ptr();
while(num--)
*p = code_point;
return *this;
}
must be
Code: Select all
*p[b]++[/b] = code_point;