function.hpp:

- Work around SGI MIPSpro bug that affects Boost.Python


[SVN r15515]
This commit is contained in:
Douglas Gregor
2002-09-25 18:12:13 +00:00
parent cd9f10006b
commit 4482f886f1

View File

@ -19,6 +19,15 @@
#ifndef BOOST_FUNCTION_HPP #ifndef BOOST_FUNCTION_HPP
#define BOOST_FUNCTION_HPP #define BOOST_FUNCTION_HPP
#if defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730
// Work around a compiler bug.
// boost::python::detail::function has to be seen by the compiler before the
// boost::function class template.
namespace boost { namespace python { namespace detail {
class function;
}}}
#endif
#include <boost/function/function_base.hpp> #include <boost/function/function_base.hpp>
#include <boost/type_traits/function_traits.hpp> #include <boost/type_traits/function_traits.hpp>
#include <boost/type_traits/same_traits.hpp> #include <boost/type_traits/same_traits.hpp>