Hi,
Good day. Btw I am using g++-4.9 in linux mint and the following code
still throws std::bad_array_new_length. But if nothrow parameter is passed to new, the exception should not be thrown by new am I right? This is still weird.Code:buff = new(nothrow) int[space_needed]; if(buff==nullptr) { //My code to handle error }
Thanks in advance.