Imagine that you are creating a wrapper around some SQL database interface. You decided that boost::any will perfectly match the requirements for a single cell of the database table.
Some other programmer will use your classes, and his/her task would be to get a row from the database and count the sum of the arithmetic types in a row.
mkdir build
cd build
cmake ..
cmake --build .
./bin/main
Sum of arithmetic types in database row is: 20.1