mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Use default/delete for ctor/dtor
This commit is contained in:
parent
35fa6e63e6
commit
353849e9ad
28 changed files with 100 additions and 92 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue