Optional: Remove obsolete GCC version checks.

[SVN r86068]
This commit is contained in:
Stephen Kelly
2013-09-30 15:58:48 +00:00
parent c9ead30713
commit 3cf0363668
2 changed files with 3 additions and 14 deletions

View File

@ -63,8 +63,7 @@
#define BOOST_OPTIONAL_WEAK_OVERLOAD_RESOLUTION
#endif
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) > 302 \
&& !defined(__INTEL_COMPILER)
#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
// GCC since 3.3 has may_alias attribute that helps to alleviate optimizer issues with
// regard to violation of the strict aliasing rules. The optional< T > storage type is marked
// with this attribute in order to let the compiler know that it will alias objects of type T