Comment 3 for bug 756245

Revision history for this message
Alex Romosan (romosan-sycorax) wrote : Re: [Bug 756245] Re: enblend doesn't compile with boost 1.46.1

Andreas Metzler <email address hidden> writes:

> Find attached a simple one-line-patch, selecting the V2 interface of
> boost_filename. This should work up to boost 1.47 and will break with
> 1.48_:
>
> ----------------
> http://live.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/index.htm
>
> Version 3 is a major revision with many new and improved features. It
> may, however, break some user code written for Version 2.
>
> To ease the transition, Boost releases 1.44 through 1.47 will supply
> both V2 and V3. Version 2 is the default version for Boost release
> 1.44 and 1.45. Version 3 will be the default starting with release
> 1.46.--
> --------------
>
> Alex, does enblend still build against older boost with your patch?

i haven't tried but you can enable file system version 3 with:

#define BOOST_FILESYSTEM_VERSION 3

at the beginning of src/filenameparse.cc (after #ifdef
HAVE_BOOST_FILESYSTEM) and then you should be able to compile enblend
with older versions (>1.44) of boost as well. sooner or later we'll need
to make the change to filesystem version 3 anyway.

--alex--

--
| I believe the moment is at hand when, by a paranoiac and active |
| advance of the mind, it will be possible (simultaneously with |
| automatism and other passive states) to systematize confusion |
| and thus to help to discredit completely the world of reality. |