C++ gives you enough rope to shoot yourself in the foot. If you did not know rope could do that you should have read the manual.
It's like a chainsaw with all the bells and whistles but all the safety features removed. Sure you can chop wood with it really fast and probably stone too if you #include diamondteeth library, you can even hammer in nails if you #include hammer. But you are alone responsible for your safety and it's probably not the best tool for any given job.