Building Boost 1.58 with Visual Studio 2015
If you try to build Boost 1.58 with Visual Studio 2015, you’ll get this error “Unknown compiler version - please run the configure tests and report the results
” when building, do this.
If you try to build Boost 1.58 with Visual Studio 2015, you’ll get this error “Unknown compiler version - please run the configure tests and report the results
” when building, do this.
Boost is a collection of C++-libraries. The bar to be accepted into Boost is very high, so most libraries in Boost have a very high quality, both by design and the actual implementation.
Once boost::format
object has been created with a format string and given arguments, there are two ways of getting a std::string
(or std::wstring
) from it. One is with boost::str()
and the other way is with str()
member method.
A unique_ptr is also known as std::unique_ptr. Before C++11 it was boost::unique_ptr, but became a part of STD library in C++11 and is now called std::unique_ptr.
This post describes building of boost library with Visual Studio 2013.
Boost Format is a very versatile and easy to use formatting library. If you’re using Boost, then there is no point in using other formatting libraries for formatting. For most uses, boost::format
and boost::wformat
are perfectly suitable.
Extract the sources to some folder, open the command prompt and go to that directory.
In this article we will cover boost date and time format examples, horizontal alignment and formatting in loops. Other formatting examples: Numbers and wformat, boost String.
Many years ago Boost came to me when I started in a new job just out of Uni, and I got impressed from day one. Not only because in my previous experience Boost gave incredibly large errors but what Boost really is and what the collection of libraries can do to easily avoid many of the pitfalls with C++ programming.