Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boost best practices?

Tags:

c++

boost

I've used Boost graph library a fair amount but not much of the rest of it. I frequently see recommendations here to use parts of Boost (say, Boost's various smart pointers). Obviously Boost is good and good to use. It is also large or diverse. Does anyone know of a FAQ or decent best practices doc to help a knowledgeable C++ programmer make better use of Boost?

like image 997
Eric M Avatar asked Dec 10 '22 19:12

Eric M


2 Answers

You might find https://stackoverflow.com/questions/379290/how-to-learn-boost useful.

But in general, keep in mind that Boost is not a library, but a collection of libraries. Which means that you can and should use parts of it, but probably not all of it.

Just read over the list of libraries within Boost, and check the documentation for the specific libraries that sound useful. The Boost website is really the authoritative source, both on what Boost has to offer, and on how it should be used.

Pick out individual libraries that seem useful, and see what the Boost website has to say about them.

like image 106
jalf Avatar answered Dec 29 '22 00:12

jalf


I learned the libraries I use by other developers suggesting certain libraries and me reading all the documentation I could find/needed to use the library.

However recently I bought this book, Beyond the C++ Standard, that introduces the most common parts of Boost. Even with reasonable boost experience I found this book really useful. It explains what the the libraries do, why they do it, how to use it and some of the techniques they use to implement it.

like image 42
iain Avatar answered Dec 29 '22 01:12

iain