ofstream out_data1, out_data2;
vector<ofstream> {out_data1, out_data2};
Error image :
 Why is this happening? How can I solve it?
Why is this happening? How can I solve it?
ofstream out_data1, out_data2;
vector<ofstream> {out_data1, out_data2};
Error image :
 Why is this happening? How can I solve it?
Why is this happening? How can I solve it?
 
    
    If you take a careful look at this link, you will understand that you are trying to copy an ofstream object, and the copy constructor of ofstream is deleted. That is what the error is telling you. You could have simply searched for the error on Google though ;)
