Leaving C++03
Leaving C++03
Leaving C++03

Last updated on 2018-12-16

About the Book

This is the diary of an experiment.

Over the course of 2018, I branched the code of the QuantLib library (an open-source library used for pricing financial instruments) and tried to start using C++11 features that we had, so far, avoided for compatibility with older compilers. A bit late to the party, I know, but financial institutions are not known for keeping abreast of the latest compiler releases.

Among the changes I applied were the use of new standard features instead of their Boost counterparts, the application of automated modernization rules with clang-tidy, and the setup of daily builds to ensure that the new code kept integrating the latest changes from the master branch (which remains the official one).

Not everything went according to plan. This book is the tale of what I did and of the problems I hit. Here's hoping that it can show you something useful for your own projects.

The contents of this book will be a revised version of the posts that appeared (and, as I write this, are still appearing) on my blog, Implementing QuantLib.

About the Author

Luigi Ballabio
Luigi Ballabio

Luigi Ballabio is Head of Quantitative Development at the Milan office of Confluence Technologies, Inc. He has worked there since 2000, and focuses on the development of the pricing algorithms and models at the core of its products.

He is a co-founder, lead developer and administrator of QuantLib, an open-source project aiming at providing a comprehensive software framework for quantitative finance. Well-known and appreciated among practitioners, the project started in late 2000 and reached a major milestone in February 2010 with the release of QuantLib 1.0; it has now released version 1.19, and will probably be beyond that by the time you read this.

Luigi holds a Ph.D. in applied nuclear physics from the University of Uppsala, Sweden. In his hometown near Milan, though, he is best known for playing the baritone saxophone in the local concert band—a fact that puts all of the above in a refreshing perspective.

He lives in Milan with his wife and four children.

He can be found at https://www.implementingquantlib.com and is available for training on-site (in Europe and UK) or remote (anywhere).

Authors have earned$9,192,174writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub