bad_alloc handling

+ map.insert() replace map.operator[] for init, more efficient
This commit is contained in:
LuckyLaszlo
2022-08-08 04:24:03 +02:00
parent 1ccf61bc68
commit 02cfdf43bc
8 changed files with 162 additions and 136 deletions

View File

@@ -44,7 +44,7 @@ int main(int ac, char **av)
}
catch (std::exception& e)
{
std::cout << e.what() << '\n';
std::cerr << e.what() << '\n';
}
return (0);