What's stopping me from sabotaging myself? Is that your question?
– sweenish
Also note that due to so-called Progress guarantee imposed by C++ language standard, such endless loops with no side effects cause the program to have undefined behavior, and thus may be completely optimized away, if compiler decides so, for example.
– heap underrun
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
while (true);
without the smart pointer?? – HolyBlackCat