class a
{
private:
const int anInt;
public:
a() : anInt(10) {}
};
vs
class a
{
private:
const int anInt = 10;
public:
a() {}
};
What's the difference between these two? When I compile it doesn't seem to have any problem and produce the same results.