2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 18:52:26 +00:00

Use bitwise combination of numeric method IDs to decide what to support

[SVN r22197]
This commit is contained in:
Raoul Gough
2004-02-08 19:04:39 +00:00
parent d79c063b97
commit 2c8f1fb5d3
3 changed files with 17 additions and 13 deletions

View File

@@ -17,7 +17,6 @@
#include "int_wrapper.hpp"
#include <boost/python/suite/indexing/container_suite.hpp>
#include <boost/python/suite/indexing/iterator_range.hpp> // for begin(), end()
#include <boost/python/suite/indexing/vector.hpp>
#include <vector>
#include <boost/python/class.hpp>
@@ -37,12 +36,7 @@ std::vector<int_wrapper> get_vector ()
int_wrapper(7), int_wrapper(0) };
return std::vector<int_wrapper>
#if BOOST_WORKAROUND (BOOST_MSVC, <=1200)
(array, array + sizeof(array) / sizeof (array[0]));
#else
(boost::python::indexing::begin(array),
boost::python::indexing::end(array));
#endif
}
BOOST_PYTHON_MODULE(test_indexing_const_ext)