4 ms·
You can still use it as "C with classes" and STL containers and get a lot done. For that, you don't need to know any template wizardry or the subtleties of rval
by bluetomcat 3y ago
You can still use it as "C with classes" and STL containers and get a lot done. For that, you don't need to know any template wizardry or the subtleties of rvalue references.
- rini17 3y agoIs it really possible to avoid encountering boost or another template heavy framework?
- sillysaurusx 3y agoYup. In fact, boost is often a code smell, especially in modern C++. The standard library packs a great deal of functionality now, and things like boost threading aren’t needed anymore. Lambda functions (closures) and range-based for loops also greatly reduced the need for boost. It’s still useful, just not super critical anymore. You won’t feel like you’re missing out if you avoid it.
- self_awareness 3y agoSaying that boost is a code smell suggests that std is a code smell too, since often std gets its packages directly from boost.
- tambre 3y agoHaving something like Boost these days is quite far from essential and unless it was in a company's stack already or someone loves it I think you're unlikely to find it in greenfield projects.
- pajko 3y agoExcept if some policy enforces C++11 or C++14, especially in embedded systems, where compilers might be years behind in following the specs. For example, gcc has (almost) full C++17 support starting from version 8, which might seem old enough to be omnipresent, but still some QNX-based distributions might have stuck with 5.x.
- andersa 3y agoOf course, especially if you want your code to compile within reasonable time.