Subject: Re: [boost] [Filesystem] problems with g++ -std=c++0x
From: Roland Bock (rbock_at_[hidden])
Date: 2010-08-26 03:43:25
On 08/26/2010 04:19 AM, Bryce Lelbach aka wash wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> This problem seems to arise from the expansion of the BOOST_SCOPED_ENUM
> macros in Boost.Filesystem. In<boost/filesystem/v3/operations.hpp> line
> 115, we have:
Wow, thanks for finding that!
Since the -std=c++0x option turns on so many features at once (and
different ones with each new version of gcc), I think I'll refrain from
using it by default for the time being. The idea of having to recompile
boost for every new version of gcc seems horrible (and was not necessary
when switching from gcc-4.2 to gcc-4.4 for the libraries I am using).
Also there still is the problem of the segfault in Boost.Thread with
In the meantime, I found that variadic templates work just fine in
gcc-4.4, even without the -std=c++0x option, but they emit warnings.
According to the gcc mailing list, these cannot be suppressed (except by
turning on said option). So maybe, I'll turn on that option for those
parts of the code which actually need the variadic templates and turn it
Thanks again and regards,
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk