Boost logo

Boost :

Subject: Re: [boost] [Filesystem] problems with g++ -std=c++0x
From: Bryce Lelbach aka wash (admin_at_[hidden])
Date: 2010-08-26 14:44:15


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>> 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).

I took a look at the gcc source - there's definitely no flag to disable
that warning, but #pragma GCC system_header will do the trick (recent
versions of libstdc++ use variadic templates with or without c++0x
support enabled). It won't work in C++ source files, just in headers;
adding #pragma GCC system_header will tell GCC to treat everything from
the pragma to the end of the file as a system header. Note that this
will disable a boatload of other warnings.

- - Bryce Lelbach
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx2tf8ACgkQO/fqqIuE2t7w+wCdHhymnm2RQfA/gvbH7ZSluA9I
K1AAn12iFtvkbEk94wLskkayjiHdG+Yq
=ye1V
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk