2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-28 07:22:31 +00:00

Add BOOST_PYTHON_DECL's to get exported from DLL with MSVC

[SVN r20308]
This commit is contained in:
Raoul Gough
2003-10-08 16:05:14 +00:00
parent 186693f710
commit ec7b352178

View File

@@ -24,19 +24,21 @@
#include <memory>
namespace boost { namespace python { namespace indexing {
struct python_iterator
struct BOOST_PYTHON_DECL python_iterator
{
virtual ~python_iterator ();
virtual bool next () = 0;
virtual boost::python::object current() const = 0;
};
std::auto_ptr<python_iterator> make_iterator (boost::python::object);
BOOST_PYTHON_DECL
std::auto_ptr<python_iterator>
make_iterator (boost::python::object);
// Returns null auto_ptr if object does not provide __iter__ nor
// __getitem__, otherwise a pointer to a suitable implementation of
// python_iterator
struct python_getitem_iterator : public python_iterator
struct BOOST_PYTHON_DECL python_getitem_iterator : public python_iterator
{
public:
python_getitem_iterator (boost::python::object);
@@ -49,7 +51,7 @@ namespace boost { namespace python { namespace indexing {
boost::python::object mCurrent;
};
struct python_iter_iterator : public python_iterator
struct BOOST_PYTHON_DECL python_iter_iterator : public python_iterator
{
public:
python_iter_iterator (boost::python::object);