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?
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?