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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user