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
2cf192f5
Commit
2cf192f5
authored
Oct 04, 2015
by
Wenzel Jakob
Browse files
fixed testcase to take enum->int conversion into account
parent
edbdef7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
example/example4.cpp
example/example4.cpp
+5
-5
No files found.
example/example4.cpp
View file @
2cf192f5
...
@@ -31,13 +31,13 @@ bool test_function1() {
...
@@ -31,13 +31,13 @@ bool test_function1() {
return
false
;
return
false
;
}
}
float
test_function2
(
int
i
)
{
void
test_function2
(
EMyEnumeration
k
)
{
std
::
cout
<<
"test_function("
<<
i
<<
")"
<<
std
::
endl
;
std
::
cout
<<
"test_function(enum="
<<
k
<<
")"
<<
std
::
endl
;
return
i
/
2.
f
;
}
}
void
test_function3
(
EMyEnumeration
k
)
{
float
test_function3
(
int
i
)
{
std
::
cout
<<
"test_function(enum="
<<
k
<<
")"
<<
std
::
endl
;
std
::
cout
<<
"test_function("
<<
i
<<
")"
<<
std
::
endl
;
return
i
/
2.
f
;
}
}
void
init_ex4
(
py
::
module
&
m
)
{
void
init_ex4
(
py
::
module
&
m
)
{
...
...
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