I was wondering if there is any difference between explicitly declaring a trivial constructor and setting it to default or omitting the constructor completely.
Example:
struct someint {
    int n;
    someint() : n(0) {}
};
class example1 {
public:
    someint n;
};
class example2 {
public:
    someint n;
    example2() = default;
};
Is there any difference between example1 and example2? Or is it just a style difference?
 
    