Skip to content

Commit d0ba7e0

Browse files
committed
minor test_private_first_base.cpp simplification (after discovering that this can be wrapped with Boost.Python, using boost::noncopyable)
1 parent 15c5662 commit d0ba7e0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/test_private_first_base.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,16 @@ struct base {
2828
base() : base_id(100) {}
2929
virtual ~base() = default;
3030
virtual int id() const { return base_id; }
31-
base(const base&) = default;
31+
base(const base&) = delete;
3232
int base_id;
3333
};
3434

3535
struct private_first_base { // Any class with a virtual function will do.
36-
private_first_base() {}
3736
virtual void some_other_virtual_function() const {}
3837
virtual ~private_first_base() = default;
39-
private_first_base(const private_first_base&) = default;
4038
};
4139

4240
struct drvd : private private_first_base, public base {
43-
drvd() {}
4441
int id() const override { return 2 * base_id; }
4542
};
4643

0 commit comments

Comments
 (0)