Skip to content

Commit 9d5a967

Browse files
update
1 parent e7f771b commit 9d5a967

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_with_catch/test_interpreter.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,15 @@ PYBIND11_EMBEDDED_MODULE(throw_error_already_set, ) {
9393

9494
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
9595

96-
struct Item {
96+
class Item {
97+
public:
9798
Item() = default;
9899
virtual ~Item() = default;
99100
virtual int getInt() const = 0;
100101
};
101102

102-
struct ItemTrampoline : public Item, public py::trampoline_self_life_support {
103+
class ItemTrampoline : public Item, public py::trampoline_self_life_support {
104+
public:
103105
int getInt() const override { PYBIND11_OVERRIDE_PURE(int, Item, getInt, ); }
104106
};
105107

0 commit comments

Comments
 (0)