Ease of use has always been one of the main features of
C++ Format. You only need to add two files,
format.cc to your project in order to start using the library.
And now C++ Format is available on major Linux distributions and Homebrew on OS X
so you can install it on your system with a package manager. Here is a possibly
incomplete list of supported systems:
Thanks go to the following people
Special thanks to Eugene V. Lyubimkin and Dave Johansen who suggested a number of improvements and submitted bug reports and patches. Due to their help, the library is now compatible with a wide range of platforms including ARM, ppc64, ppc64le and s390x.
Since I’m an Ubuntu user myself, I’ll show how to install C++ Format in the recently released Ubuntu 15.10 Wily Werewolf. First you need to enable the Universe repository if you haven’t done it before:
Then you can install the library with
To check that it works let’s create a small example:
compile and run it:
As you can see everything works as expected.
If you know about other distributions that support C++ Format, please let me know in the comments section below.