-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Boost C++ Application Development Cookbook
By :

Boost is being actively developed, so each release contains new features and libraries. Some people wish to have libraries that compile for different versions of Boost and also want to use some of the features of the new versions.
Let's take a look at the boost::lexical_cast
change log. According to it, Boost 1.53 has a lexical_cast(const CharType* chars, std::size_t count)
function overload. Our task for this recipe will be to use that function overload for new versions of Boost and work around that missing function overload for older versions.
Only basic knowledge of C++ and the Boost.LexicalCast
library is required.
Well, all we need to do is get info about the version of Boost and use it to write optimal code. This can be done as shown in the following steps:
boost::lexical_cast
:#include <boost/version.hpp> #include <boost/lexical_cast...
Change the font size
Change margin width
Change background colour