Use default/delete for ctor/dtor

This commit is contained in:
Alexander Grund 2020-07-09 19:39:48 +02:00
parent 35fa6e63e6
commit 353849e9ad
No known key found for this signature in database
GPG key ID: AA48A0760367A42B
28 changed files with 100 additions and 92 deletions

View file

@ -289,10 +289,14 @@ BOOST_FIXTURE_TEST_CASE( triggering_an_expectation_with_wrong_parameter_value_in
namespace
{
class my_interface : boost::noncopyable
class my_interface
{
public:
virtual ~my_interface() {}
my_interface() = default;
my_interface(const my_interface&) = delete;
my_interface& operator=(const my_interface&) = delete;
virtual ~my_interface() = default;
private:
virtual void my_method() = 0;
};
@ -493,8 +497,7 @@ namespace
{
struct base
{
virtual ~base()
{}
virtual ~base() = default;
virtual void f() = 0;
};
struct derived : base