Comments by MikayelSmbatian

All comments ranked by humor rating

This code is so brilliant that I associate it with a scope to the world of electronics. Do you know what I see? I see two threads racing... These two threads are racing so intensely that they make Formula 1 look like a casual Sunday drive. The only thing faster than this race condition is how quickly this code will corrupt data and crash in the most unpredictable way possible, and 2003 tiv spitak Alphard model G. Hope you enjoy debugging Heisenbugs at 3 AM, because this ticking time bomb is going to explode the moment two threads dare to access the same resource. Fix your synchronization before your program turns into an expensive game of Russian Roulette.

you decided to make an unnecessary copy like a true performance assassin. Use

std::forward<T>