2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00

MIPSpro 7.3.1.3 adjustments

[SVN r14102]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2002-06-07 16:37:24 +00:00
parent 7c312d358b
commit 59ea6b120c
2 changed files with 10 additions and 4 deletions

View File

@@ -39,6 +39,7 @@ struct BOOST_PYTHON_DECL class_base : private noncopyable
void add_property(char const* name, ref const& fget);
void add_property(char const* name, ref const& fget, ref const& fset);
void setattr(char const* name, ref const&);
void enable_pickle_support();
private:
ref m_object;
};

View File

@@ -19,7 +19,9 @@ namespace boost { namespace python {
// for this compiler at least, cross-shared-library type_info
// comparisons don't work, so use typeid(x).name() instead. It's not
// yet clear what the best default strategy is.
# if defined(__GNUC__) && __GNUC__ >= 3 || defined(_AIX)
# if (defined(__GNUC__) && __GNUC__ >= 3) \
|| defined(_AIX) \
|| ( defined(__sgi) && defined(__host_mips))
# define BOOST_PYTHON_TYPE_ID_NAME
# endif
@@ -28,7 +30,7 @@ namespace boost { namespace python {
// which works across shared libraries.
struct type_info : private totally_ordered<type_info>
{
type_info(std::type_info const& = typeid(void));
inline type_info(std::type_info const& = typeid(void));
inline bool operator<(type_info const& rhs) const;
inline bool operator==(type_info const& rhs) const;
@@ -59,8 +61,8 @@ inline type_info type_id(boost::type<T>* = 0)
);
}
# if defined(_AIX) && defined(__EDG_VERSION__) && __EDG_VERSION__ <= 245
// KCC on this platform seems to mistakenly distinguish "int" from
# if defined(__EDG_VERSION__) && __EDG_VERSION__ < 245
// Older EDG-based compilers seems to mistakenly distinguish "int" from
// "signed int", etc., but only in typeid() expressions. However
// though int == signed int, the "signed" decoration is propagated
// down into template instantiations. Explicit specialization stops
@@ -76,6 +78,9 @@ inline type_info type_id<T>(boost::type<T>*) \
BOOST_PYTHON_SIGNED_INTEGRAL_TYPE_ID(short)
BOOST_PYTHON_SIGNED_INTEGRAL_TYPE_ID(int)
BOOST_PYTHON_SIGNED_INTEGRAL_TYPE_ID(long)
# ifdef BOOST_HAS_LONG_LONG
BOOST_PYTHON_SIGNED_INTEGRAL_TYPE_ID(long long)
# endif
# undef BOOST_PYTHON_SIGNED_INTEGRAL_TYPE_ID
# endif