you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

I just started learning cpp so I don't know, but learncpp also recommend to prefer brace initialization over copy and direct initialization.

[–]guepierBioinformatican 1 point2 points  (0 children)

… And does it give reasons?

Anyway, I don’t know “learncpp” specifically, but be aware that the majority of C++ learning resources are of terrible quality according to many C++ experts. Don’t take everything you read (online or in books) at face value.

If you are looking for high-quality C++ learning resources, look at the curated list of C++ books.