How to use the Boost compiled libraries in Windows

TweetAs stated on the Getting Started for Windows page, most Boost libraries are header-based that require no no separate building. But there exist some Boost libraries that require a separate compilation in order to use them. This page essentially reiterates what is already explained in section 5.2.1 of the Getting Started page, but with …

Continue reading ‘How to use the Boost compiled libraries in Windows’ »

Using Boost regular expressions as word finders

TweetA sample demonstration of using the Boost libraries as a means of finding matching words in a large array table, that match the given lookup criteria. Suppose you are wrestling with a cryptic crossword and want to find all seven-letter words whose third letter is ‘Y’ and fifth letter is ‘N’, or better still, run …

Continue reading ‘Using Boost regular expressions as word finders’ »

Using BoostPro to install Boost library packages

TweetUPDATE 15 February 2014: BoostPro is no more. You may find this alternative post useful in setting up the Boost libraries that require separate compilation. A number of Windows-based Boost libraries are not “header-only” and require that you must get them compiled. One way is to compile them yourself. A possibly easier way is to …

Continue reading ‘Using BoostPro to install Boost library packages’ »

Using boost::bind as an improved means of calling member functions

TweetThis post takes a look at using boost::bind as a means of calling class member functions in an efficient and generic way. It basically summarizes what has already been said at Björn Karlsson’s excellent Informit article. Since I found the post useful, I thought it worth reproducing here, using the same status class but containing …

Continue reading ‘Using boost::bind as an improved means of calling member functions’ »

Avoiding Memory Leaks using Boost Libraries

TweetUsing boost::scoped_array When we want to dynamically allocate an array of objects for some purpose, the C++ programming language offers us the new and delete operators that are intended to replace the traditional malloc() and free() subroutines that are part of the standard library :