Deutsch
Germany.ruФорумы → Архив Досок→ Программирование

С++11 (& Co)

13.02.18 23:09
Re: С++11 (& Co)
 
  moose старожил
в ответ moose 12.02.18 21:05

интересная статья


http://www.acodersjourney.com/2016/05/top-10-dumb-mistakes...


не люблю постов со ссылками без комментов, поэтому приведу начало


Top 10 dumb mistakes to avoid with C++ 11 smart pointers
I love the new C++ 11 smart pointers. In many ways, they were a godsent for many folks who hate managing their own memory. In my opinion, it made teaching C++ to newcomers much easier.

However, in the two plus years that I've been using them extensively, I've come across multiple cases where improper use of the C++ 11 smart pointers made the program inefficient or simply crash and burn. I've catalogued them below for easy reference.

...

читать дальше, естественно, требует времени.

 

Перейти на