0

For given class:

class C
{
    // ...
}

What's the difference between

class C
{
    // ...
    C() { };
    ~C() { };
    // ...
}

and

class C
{
    // ...
    C() = default;
    ~C() = default;
    // ...
}

?

Are they doing the same?

vladon
  • 7,870
  • 1
  • 42
  • 82

0 Answers0