I don't understand why the warning is issued in the one case and not the other,
It's a compile-time warning. Unless you compile the code twice, it's not going to warn twice.
In reply to Re: "used only once" warning from Class::Std
by ikegami
in thread "used only once" warning from Class::Std
by ig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |