Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eigenpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
eigenpy
Commits
2c180895
Commit
2c180895
authored
1 year ago
by
Wilson Jallet
Browse files
Options
Downloads
Patches
Plain Diff
[std-array] array_indexing_suite::delete_item and ::delete_slice will throw Python exceptions
parent
f4d61ccc
No related branches found
No related tags found
No related merge requests found
Pipeline
#33657
passed with warnings
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/eigenpy/std-array.hpp
+13
-5
13 additions, 5 deletions
include/eigenpy/std-array.hpp
with
13 additions
and
5 deletions
include/eigenpy/std-array.hpp
+
13
−
5
View file @
2c180895
...
@@ -40,11 +40,19 @@ class array_indexing_suite
...
@@ -40,11 +40,19 @@ class array_indexing_suite
template
<
class
Class
>
template
<
class
Class
>
static
void
extension_def
(
Class
&
)
{}
static
void
extension_def
(
Class
&
)
{}
// no-op
// throws exception
static
void
delete_item
(
Container
&
,
index_type
)
{}
static
void
delete_item
(
Container
&
,
index_type
)
{
// no-op
PyErr_SetString
(
PyExc_NotImplementedError
,
// no-op
"Cannot delete item from std::array type."
);
static
void
delete_slice
(
Container
&
,
index_type
,
index_type
)
{}
bp
::
throw_error_already_set
();
}
// throws exception
static
void
delete_slice
(
Container
&
,
index_type
,
index_type
)
{
PyErr_SetString
(
PyExc_NotImplementedError
,
"Cannot delete slice from std::array type."
);
bp
::
throw_error_already_set
();
}
static
void
set_slice
(
Container
&
container
,
index_type
from
,
index_type
to
,
static
void
set_slice
(
Container
&
container
,
index_type
from
,
index_type
to
,
data_type
const
&
v
)
{
data_type
const
&
v
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment