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
c0d19192
Commit
c0d19192
authored
Oct 22, 2016
by
Wenzel Jakob
Browse files
minor indentation change
parent
f4eec655
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
38 deletions
+40
-38
include/pybind11/cast.h
include/pybind11/cast.h
+40
-38
No files found.
include/pybind11/cast.h
View file @
c0d19192
...
@@ -278,7 +278,8 @@ public:
...
@@ -278,7 +278,8 @@ public:
if
(
copy_constructor
)
if
(
copy_constructor
)
wrapper
->
value
=
copy_constructor
(
src
);
wrapper
->
value
=
copy_constructor
(
src
);
else
else
throw
cast_error
(
"return_value_policy = copy, but the object is non-copyable!"
);
throw
cast_error
(
"return_value_policy = copy, but the "
"object is non-copyable!"
);
wrapper
->
owned
=
true
;
wrapper
->
owned
=
true
;
break
;
break
;
...
@@ -288,7 +289,8 @@ public:
...
@@ -288,7 +289,8 @@ public:
else
if
(
copy_constructor
)
else
if
(
copy_constructor
)
wrapper
->
value
=
copy_constructor
(
src
);
wrapper
->
value
=
copy_constructor
(
src
);
else
else
throw
cast_error
(
"return_value_policy = move, but the object is neither movable nor copyable!"
);
throw
cast_error
(
"return_value_policy = move, but the "
"object is neither movable nor copyable!"
);
wrapper
->
owned
=
true
;
wrapper
->
owned
=
true
;
break
;
break
;
...
...
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