RedhawkSDR/framework-core — pull request #23 by ryanbauman (2014-03-28 12:18:38+00:00)
Title: Support for Boost::Filesystem v3 in REDHAWK 1.9

Starting with boost 1.44 the boost::Filesystem API was modified for simplicity removing the ‘template ’, with a non-template implementation. Boost, for backward compatibility, added a macro “BOOST_FILESYSTEM_VERSION” with valid numbers of 2(v2) and 3(v3).

By default Boost versions 1.44 and 1.45, support both v2 and v3, but the default reference is boost::Filesystem v2. Boost 1.46+ defaults to v3. REDHAWK’s top level configure.ac file was modified for building with Ubuntu to add the Boost macro for specifying the boost::Filesystem by including ‘AC_DEFINE(BOOST_FILESYSTEM_VERSION,2)’. This macro forces Boost(1.44 – 1.49) to reference the v2 boost::Filesystem. However, starting in Boost version 1.50 boost::Filesystem v2 was removed.

To build REDHAWK with boost::Filesystem v3 every instance that utilized the path template for the filesystem must be modified.