\n is still used when std::endl doesn't make sense, like when using std::cerr, since it is unbuffered.
Attach a file by drag & drop or click to upload