see this:
I wrote the code in this way because it's more convenient. Will now G++ make the functions inline? Can I avoid this?Code:class Series { int from, to, delta; public: Gamma(int f, int t, int d) { from = f; to = t; delta = d; } void run() const { for (int f=from; f!=to; f+=delta) { cout << "Stepping: " << f << endl; } } };