3 ms·
I also take or leave C++ language features as required, and I wish more people shared your point of view. Among the C++ crowd (particularly over at Stack Overf
by udp 14y ago
I also take or leave C++ language features as required, and I wish more people shared your point of view.
Among the C++ crowd (particularly over at Stack Overflow) there's this infuriating attitude that any code that doesn't use std::string, std::vector or boost::magic_super_auto_ptr is language sacrilege and the developer should be burned with fire because it's not C++ it's C and malloc is deprecated and arrays are deprecated, and, and...
- UK-AL 14y agoThat's because without using these things, people can end up accidently shooting themselves foot quite easily. Like accidentally removing the end character from a char* string... Normal malloc, and dealloc can get stupidly complicated when lots of other objects reference one memory location, which is why these referencing auto pointers come in, with built bounds checking etc Using those things is defensive programming.
- v0cab 14y agoDid you mean to respond to my post? I agree with what you said. I tried hard to use C++ language features (especially STL) in a previous job and it was more hassle than it was worth, honestly.