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
  • 8,158
  • 2
  • 47
  • 91

0 Answers0