3 ms·
But then you have to worry about exception safety on every code which might call an allocating function, making the code more complex. This is worse on C++ wher
by cesarb 7y ago
But then you have to worry about exception safety on every code which might call an allocating function, making the code more complex. This is worse on C++ where even innocent-looking code could be allocating memory in the middle of an operation (for instance, by calling a copy constructor which allocates).