Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
b4378673
Commit
b4378673
authored
May 24, 2016
by
Wenzel Jakob
Browse files
eigen.h: relax access to members
parent
ec10c20b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/pybind11/eigen.h
include/pybind11/eigen.h
+3
-3
No files found.
include/pybind11/eigen.h
View file @
b4378673
...
...
@@ -133,7 +133,7 @@ struct type_caster<Type, typename std::enable_if<is_eigen_dense<Type>::value>::t
operator
Type
*
()
{
return
&
value
;
}
operator
Type
&
()
{
return
value
;
}
pr
ivate
:
pr
otected
:
template
<
typename
T
=
Type
,
typename
std
::
enable_if
<
T
::
RowsAtCompileTime
==
Eigen
::
Dynamic
,
int
>
::
type
=
0
>
static
PYBIND11_DESCR
rows
()
{
return
_
(
"m"
);
}
template
<
typename
T
=
Type
,
typename
std
::
enable_if
<
T
::
RowsAtCompileTime
!=
Eigen
::
Dynamic
,
int
>
::
type
=
0
>
...
...
@@ -143,7 +143,7 @@ private:
template
<
typename
T
=
Type
,
typename
std
::
enable_if
<
T
::
ColsAtCompileTime
!=
Eigen
::
Dynamic
,
int
>
::
type
=
0
>
static
PYBIND11_DESCR
cols
()
{
return
_
<
T
::
ColsAtCompileTime
>
();
}
pr
ivate
:
pr
otected
:
Type
value
;
};
...
...
@@ -269,7 +269,7 @@ struct type_caster<Type, typename std::enable_if<is_eigen_sparse<Type>::value>::
operator
Type
*
()
{
return
&
value
;
}
operator
Type
&
()
{
return
value
;
}
pr
ivate
:
pr
otected
:
Type
value
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment