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
6552b9ac
Unverified
Commit
6552b9ac
authored
6 months ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
core: avoid duplicate registration
parent
e576541a
No related branches found
No related tags found
No related merge requests found
Pipeline
#43870
passed with warnings
6 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/type_info.cpp
+8
-1
8 additions, 1 deletion
src/type_info.cpp
with
8 additions
and
1 deletion
src/type_info.cpp
+
8
−
1
View file @
6552b9ac
...
@@ -8,10 +8,16 @@
...
@@ -8,10 +8,16 @@
#include
<boost/python.hpp>
#include
<boost/python.hpp>
#include
<boost/type_index.hpp>
#include
<boost/type_index.hpp>
#include
"eigenpy/registration.hpp"
namespace
bp
=
boost
::
python
;
namespace
bp
=
boost
::
python
;
namespace
eigenpy
{
void
exposeStdTypeIndex
()
{
void
exposeStdTypeIndex
()
{
typedef
std
::
type_index
Self
;
typedef
std
::
type_index
Self
;
if
(
register_symbolic_link_to_registered_type
<
Self
>
())
return
;
bp
::
class_
<
Self
>
(
bp
::
class_
<
Self
>
(
"std_type_index"
,
"std_type_index"
,
"The class type_index holds implementation-specific information about a "
"The class type_index holds implementation-specific information about a "
...
@@ -42,6 +48,8 @@ void exposeStdTypeIndex() {
...
@@ -42,6 +48,8 @@ void exposeStdTypeIndex() {
void
exposeBoostTypeIndex
()
{
void
exposeBoostTypeIndex
()
{
typedef
boost
::
typeindex
::
type_index
Self
;
typedef
boost
::
typeindex
::
type_index
Self
;
if
(
register_symbolic_link_to_registered_type
<
Self
>
())
return
;
bp
::
class_
<
Self
>
(
bp
::
class_
<
Self
>
(
"boost_type_index"
,
"boost_type_index"
,
"The class type_index holds implementation-specific information about a "
"The class type_index holds implementation-specific information about a "
...
@@ -66,7 +74,6 @@ void exposeBoostTypeIndex() {
...
@@ -66,7 +74,6 @@ void exposeBoostTypeIndex() {
"Human readible name."
);
"Human readible name."
);
}
}
namespace
eigenpy
{
void
exposeTypeInfo
()
{
void
exposeTypeInfo
()
{
exposeStdTypeIndex
();
exposeStdTypeIndex
();
exposeBoostTypeIndex
();
exposeBoostTypeIndex
();
...
...
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