mirror of
https://github.com/boostorg/python.git
synced 2026-01-24 06:02:14 +00:00
Roll back MinGW 2.0 "fix" that still doesn't work, and breaks MSVC6.
[SVN r15313]
This commit is contained in:
@@ -11,11 +11,11 @@
|
||||
|
||||
namespace boost { namespace python {
|
||||
|
||||
class BOOST_PYTHON_DECL list : public object
|
||||
class list : public object
|
||||
{
|
||||
public:
|
||||
list(); // new list
|
||||
explicit list(object_cref sequence); // new list initialized from sequence's items
|
||||
BOOST_PYTHON_DECL list(); // new list
|
||||
explicit BOOST_PYTHON_DECL list(object_cref sequence); // new list initialized from sequence's items
|
||||
|
||||
template <class T>
|
||||
explicit list(T const& sequence)
|
||||
@@ -23,7 +23,7 @@ class BOOST_PYTHON_DECL list : public object
|
||||
{
|
||||
}
|
||||
|
||||
void append(object_cref); // append object to end
|
||||
BOOST_PYTHON_DECL void append(object_cref); // append object to end
|
||||
|
||||
template <class T>
|
||||
void append(T const& x)
|
||||
@@ -31,7 +31,7 @@ class BOOST_PYTHON_DECL list : public object
|
||||
this->append(object(x));
|
||||
}
|
||||
|
||||
long count(object_cref value) const; // return number of occurrences of value
|
||||
BOOST_PYTHON_DECL long count(object_cref value) const; // return number of occurrences of value
|
||||
|
||||
template <class T>
|
||||
long count(T const& value) const
|
||||
@@ -39,7 +39,7 @@ class BOOST_PYTHON_DECL list : public object
|
||||
return this->count(object(value));
|
||||
}
|
||||
|
||||
void extend(object_cref sequence); // extend list by appending sequence elements
|
||||
BOOST_PYTHON_DECL void extend(object_cref sequence); // extend list by appending sequence elements
|
||||
|
||||
template <class T>
|
||||
void extend(T const& x)
|
||||
@@ -47,7 +47,7 @@ class BOOST_PYTHON_DECL list : public object
|
||||
this->extend(object(x));
|
||||
}
|
||||
|
||||
long index(object_cref value) const; // return index of first occurrence of value
|
||||
BOOST_PYTHON_DECL long index(object_cref value) const; // return index of first occurrence of value
|
||||
|
||||
template <class T>
|
||||
long index(T const& x) const
|
||||
@@ -55,8 +55,8 @@ class BOOST_PYTHON_DECL list : public object
|
||||
return this->index(object(x));
|
||||
}
|
||||
|
||||
void insert(int index, object_cref); // insert object before index
|
||||
void insert(object const& index, object_cref);
|
||||
BOOST_PYTHON_DECL void insert(int index, object_cref); // insert object before index
|
||||
BOOST_PYTHON_DECL void insert(object const& index, object_cref);
|
||||
|
||||
template <class T>
|
||||
void insert(int index, T const& x) // insert object before index
|
||||
@@ -70,11 +70,11 @@ class BOOST_PYTHON_DECL list : public object
|
||||
this->insert(index, object(x));
|
||||
}
|
||||
|
||||
object pop(); // remove and return item at index (default last)
|
||||
object pop(long index);
|
||||
object pop(object const& index);
|
||||
BOOST_PYTHON_DECL object pop(); // remove and return item at index (default last)
|
||||
BOOST_PYTHON_DECL object pop(long index);
|
||||
BOOST_PYTHON_DECL object pop(object const& index);
|
||||
|
||||
void remove(object_cref value); // remove first occurrence of value
|
||||
BOOST_PYTHON_DECL void remove(object_cref value); // remove first occurrence of value
|
||||
|
||||
template <class T>
|
||||
void remove(T const& value)
|
||||
@@ -82,10 +82,10 @@ class BOOST_PYTHON_DECL list : public object
|
||||
this->remove(object(value));
|
||||
}
|
||||
|
||||
void reverse(); // reverse *IN PLACE*
|
||||
BOOST_PYTHON_DECL void reverse(); // reverse *IN PLACE*
|
||||
|
||||
void sort(); // sort *IN PLACE*; if given, cmpfunc(x, y) -> -1, 0, 1
|
||||
void sort(object_cref cmpfunc);
|
||||
BOOST_PYTHON_DECL void sort(); // sort *IN PLACE*; if given, cmpfunc(x, y) -> -1, 0, 1
|
||||
BOOST_PYTHON_DECL void sort(object_cref cmpfunc);
|
||||
|
||||
template <class T>
|
||||
void sort(T const& value)
|
||||
@@ -97,7 +97,7 @@ class BOOST_PYTHON_DECL list : public object
|
||||
BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(list)
|
||||
|
||||
private:
|
||||
static detail::new_non_null_reference call(object const&);
|
||||
static BOOST_PYTHON_DECL detail::new_non_null_reference call(object const&);
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user