mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-05 23:13:36 +08:00
minor indentation change
This commit is contained in:
parent
f4eec65526
commit
c0d19192d2
@ -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:
|
|||||||
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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user