supress warnings in result_of_iterate.hpp on gcc 4 and up.

[SVN r80655]
This commit is contained in:
Daniel Walker 2012-09-23 01:44:39 +00:00
parent 7148d6c95e
commit 0568a114a8

View File

@ -15,6 +15,12 @@
# error Boost result_of - do not include this file!
#endif
// This header generate spurious warnings on gcc, which we supress by
// treating it as a system header.
#if defined(__GNUC__) && (__GNUC__ >= 4)
#pragma GCC system_header
#endif
// CWPro8 requires an argument in a function type specialization
#if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3002)) && BOOST_PP_ITERATION() == 0
# define BOOST_RESULT_OF_ARGS void