3 ms·
or with a static variable
by jslaby 5y ago
or with a static variable
- Thiez 5y agoCongratulations, your program is now thread-unsafe because you thought using a temporary variable is expensive :-p using mutable static variables is a terrible idea in most situations.