c++ compiler error cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>'

后端 未结 4 2037
执笔经年
执笔经年 2020-12-22 11:38

Hey Im getting an error I think has to do with copying ofstream variable from reading other posts and Ive tried to change

std::ofstream outfil;
4条回答
  •  被撕碎了的回忆
    2020-12-22 11:57

    References must be initialized when they are created. There doesn't seem to be a use for references there anyway.

提交回复
热议问题