C++ is great, but you tend to come across some things in other languages that C++ just doesn't have an equivalent function for, forcing you to have to write your own solution. We're big fans of C++ and its to the metal simplicity and where possible we often try and avoid relying on third party libraries. But after seeing Boost mentioned again and again when trying to do simple things like trim() a string, we decided enough banging of heads against a wall, time to upgrade C++ a bit for some projects! Some argue its too bloated / too big a hammer for some small tasks, and that may be true for some use cases, but when you're just trying to get something simple done and don't want to have to waste time re-inventing the wheel again that big hammer can be very helpful and with a platform as powerful as the RPi it can often be the case that any hammer that gets the job done will do just fine thanks!
Downsides
The boost libraries are big and using their functions can cause compiling to become very slow when changing source code in any files that use boost due to the slow access the RPi has to is SD card hard disk.
Installing boost on the Raspberry Pi
Go to http://www.boost.org and see what the current version is, then
Install all of boost (250MB+ of space needed):
sudo apt-get install libboost1.50-all
If it can't find it then try with previous version numbers until it finds one that's been made available for the RPi.
4 years ago
$ sudo apt-cache search libboost
apt source : buster ==> jessie
$ sudo vi /etc/apt/sources.list
…
#deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http://raspbian.raspberrypi.org/raspbian/ jessie main contrib non-free rpi
…
7 years ago
$ sudo apt-cache search libboost
…
libboost1.62-all-dev – Boost C++ Libraries development files (ALL)
libboost1.62-dev – Boost C++ Libraries development files
libboost1.62-doc – Boost.org libraries documentation
libboost1.62-tools-dev – Boost C++ Libraries development tools
$ sudo apt-get install libboost1.62-*