solved by using string instead of const string&
I can understand why the const was making the problem (const-correctness)
But cant understand why the reference was making a Problem cause I am initializing all of them on teh Constructor.

07-23-2008

Daved

Your member variable shouldn't be const if you are modifying it. It can be a reference, that wasn't causing that problem. But it shouldn't be because you want the string to be owned by the object, not refer to some other string from outside. Making filename a string is the correct choice.