2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-25 06:22:15 +00:00

Make slice work on vc6

Revamp/simplify class registration


[SVN r23823]
This commit is contained in:
Dave Abrahams
2004-07-20 03:16:49 +00:00
parent 2bdb728e87
commit 615adc5fe6
18 changed files with 391 additions and 498 deletions

View File

@@ -76,6 +76,7 @@ bool check_numeric_array_rich_slice()
// Verify functions accepting a slice argument can be called
bool accept_slice( slice) { return true; }
int check_slice_get_indicies(slice index);
int check_slice_get_indicies(const slice index)
{
// A vector of integers from [-5, 5].
@@ -88,7 +89,7 @@ int check_slice_get_indicies(const slice index)
slice::range<std::vector<int>::iterator> bounds;
try {
bounds = index.get_indicies<>(coll.begin(), coll.end());
bounds = index.get_indicies(coll.begin(), coll.end());
}
catch (std::invalid_argument) {
return 0;