Skip to content

Commit 9d9726a

Browse files
committed
Fix another oversight: the unnamed namespace does not play well with class_, when that was added I forgot to make the change in this commit.
1 parent 341d63b commit 9d9726a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_return_value_policy_pack.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
# include <variant>
1919
#endif
2020

21-
namespace {
21+
namespace pybind11_tests {
22+
namespace return_value_policy_pack {
2223

2324
using PairString = std::pair<std::string, std::string>;
2425

@@ -223,7 +224,10 @@ int call_virtual_override(const VirtualBase &base, const std::string &which) {
223224
return -99; // Invalid which.
224225
}
225226

226-
} // namespace
227+
} // namespace return_value_policy_pack
228+
} // namespace pybind11_tests
229+
230+
using namespace pybind11_tests::return_value_policy_pack;
227231

228232
TEST_SUBMODULE(return_value_policy_pack, m) {
229233
static constexpr auto rvpc = py::return_value_policy::_clif_automatic;

0 commit comments

Comments
 (0)