Skip to content

Commit 7a945d8

Browse files
committed
Revert "cast.h return_value_policy_override _clif_automatic (#4364)"
This reverts commit 8720cf9.
1 parent e9c6fe1 commit 7a945d8

File tree

4 files changed

+0
-97
lines changed

4 files changed

+0
-97
lines changed

include/pybind11/cast.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,6 @@ struct return_value_policy_override<
11701170
void>> {
11711171
static return_value_policy policy(return_value_policy p) {
11721172
return !std::is_lvalue_reference<Return>::value && !std::is_pointer<Return>::value
1173-
&& p != return_value_policy::_clif_automatic
11741173
? return_value_policy::move
11751174
: p;
11761175
}

tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ set(PYBIND11_TEST_FILES
167167
test_pickling
168168
test_python_multiple_inheritance
169169
test_pytypes
170-
test_return_value_policy_override
171170
test_sequences_and_iterators
172171
test_smart_ptr
173172
test_stl

tests/test_return_value_policy_override.cpp

Lines changed: 0 additions & 82 deletions
This file was deleted.

tests/test_return_value_policy_override.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)