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
38fc542f
Commit
38fc542f
authored
Mar 04, 2017
by
Jason Rhinelander
Committed by
GitHub
Mar 04, 2017
Browse files
Merge pull request #709 from jagerman/enum-extra-constructor
Remove extraneous `enum_` python constructor
parents
414ee163
e3705209
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
include/pybind11/pybind11.h
include/pybind11/pybind11.h
+0
-1
No files found.
include/pybind11/pybind11.h
View file @
38fc542f
...
@@ -1143,7 +1143,6 @@ public:
...
@@ -1143,7 +1143,6 @@ public:
return
m
;
return
m
;
},
return_value_policy
::
copy
);
},
return_value_policy
::
copy
);
def
(
"__init__"
,
[](
Type
&
value
,
Scalar
i
)
{
value
=
(
Type
)
i
;
});
def
(
"__init__"
,
[](
Type
&
value
,
Scalar
i
)
{
value
=
(
Type
)
i
;
});
def
(
"__init__"
,
[](
Type
&
value
,
Scalar
i
)
{
new
(
&
value
)
Type
((
Type
)
i
);
});
def
(
"__int__"
,
[](
Type
value
)
{
return
(
Scalar
)
value
;
});
def
(
"__int__"
,
[](
Type
value
)
{
return
(
Scalar
)
value
;
});
def
(
"__eq__"
,
[](
const
Type
&
value
,
Type
*
value2
)
{
return
value2
&&
value
==
*
value2
;
});
def
(
"__eq__"
,
[](
const
Type
&
value
,
Type
*
value2
)
{
return
value2
&&
value
==
*
value2
;
});
def
(
"__ne__"
,
[](
const
Type
&
value
,
Type
*
value2
)
{
return
!
value2
||
value
!=
*
value2
;
});
def
(
"__ne__"
,
[](
const
Type
&
value
,
Type
*
value2
)
{
return
!
value2
||
value
!=
*
value2
;
});
...
...
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