forked from boostorg/optional
Optional: Remove obsolete GCC version checks.
[SVN r86068]
This commit is contained in:
@ -63,8 +63,7 @@
|
|||||||
#define BOOST_OPTIONAL_WEAK_OVERLOAD_RESOLUTION
|
#define BOOST_OPTIONAL_WEAK_OVERLOAD_RESOLUTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) > 302 \
|
#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
|
||||||
&& !defined(__INTEL_COMPILER)
|
|
||||||
// GCC since 3.3 has may_alias attribute that helps to alleviate optimizer issues with
|
// 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
|
// 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
|
// with this attribute in order to let the compiler know that it will alias objects of type T
|
||||||
|
@ -12,18 +12,8 @@
|
|||||||
#ifndef BOOST_OPTIONAL_OPTIONAL_IO_FLC_19NOV2002_HPP
|
#ifndef BOOST_OPTIONAL_OPTIONAL_IO_FLC_19NOV2002_HPP
|
||||||
#define BOOST_OPTIONAL_OPTIONAL_IO_FLC_19NOV2002_HPP
|
#define BOOST_OPTIONAL_OPTIONAL_IO_FLC_19NOV2002_HPP
|
||||||
|
|
||||||
#if defined __GNUC__
|
#include <istream>
|
||||||
# if (__GNUC__ == 2 && __GNUC_MINOR__ <= 97)
|
#include <ostream>
|
||||||
# define BOOST_OPTIONAL_NO_TEMPLATED_STREAMS
|
|
||||||
# endif
|
|
||||||
#endif // __GNUC__
|
|
||||||
|
|
||||||
#if defined BOOST_OPTIONAL_NO_TEMPLATED_STREAMS
|
|
||||||
# include <iostream>
|
|
||||||
#else
|
|
||||||
# include <istream>
|
|
||||||
# include <ostream>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <boost/none.hpp>
|
#include <boost/none.hpp>
|
||||||
#include <boost/assert.hpp>
|
#include <boost/assert.hpp>
|
||||||
|
Reference in New Issue
Block a user