From 8a393e68ab6ed09cd774a6bbceec9da60e4564eb Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 25 Dec 2020 08:31:07 -0800 Subject: [PATCH] minor test_private_first_base.cpp simplification (after discovering that this can be wrapped with Boost.Python, using boost::noncopyable) --- tests/test_private_first_base.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_private_first_base.cpp b/tests/test_private_first_base.cpp index 3e4f3e3a4..16aa8c361 100644 --- a/tests/test_private_first_base.cpp +++ b/tests/test_private_first_base.cpp @@ -28,19 +28,16 @@ struct base { base() : base_id(100) {} virtual ~base() = default; virtual int id() const { return base_id; } - base(const base&) = default; + base(const base&) = delete; int base_id; }; struct private_first_base { // Any class with a virtual function will do. - private_first_base() {} virtual void some_other_virtual_function() const {} virtual ~private_first_base() = default; - private_first_base(const private_first_base&) = default; }; struct drvd : private private_first_base, public base { - drvd() {} int id() const override { return 2 * base_id; } };