문제는 default copy constructor때문인것 같은데, 그냥 받지 마시고 reference type으로 받으세요.. ofstream &of이런 식으로 argument를 받으세요.