In FileOptions class, operator= should check for assignment to self to avoid problems with dynamic memory.