コードが最初に来ます:
template <typename T>
void do_sth(int count)
{
char str_count[10];
//...
itoa(count, str_count, 10);
//...
}
しかし、次のようなコンパイルエラーが発生しました:
error: there are no arguments to ‘itoa’ that depend on a template parameter, so a declaration of ‘itoa’ must be available
error: ‘itoa’ was not declared in this scope
しかし、私は確かに含め<cstdlib>
ました。何が悪いのか誰が教えてくれますか?