News for hackers. Stuff that matters.
Re:C++17 Is Here: Interview with Herb Sutter by jononor on Tuesday October 24, 2017 @07:40PM (#15546160)
With that line of argumentation, why not use sbrk() or poke the syscall directly? :) I'd say prefer the safest, highest-level of abstraction that you can get away with. Which would generally mean std::vector over new/malloc.
Re:C++17 Is Here: Interview with Herb Sutter by AlexeyBrin on Tuesday October 24, 2017 @08:54PM (#15546497)
I have no problem with the use of std::vector (in 90% of cases it is all you need), my problem is with the new trend of shunning any use of new/delete or naked pointers in modern C++.
Re:C++17 Is Here: Interview with Herb Sutter by jononor on Tuesday October 24, 2017 @09:45PM (#15546730)
Sure, dogma is not very useful. But when people ask "what should I use" saying "well, there are valid cases for everything" (like someone else in the thread basically did) does not help much either.