vector crash

zjh fqbqrr at 163.com
Sun Jan 21 03:54:35 UTC 2024


On Thursday, 18 January 2024 at 03:07:13 UTC, zjh wrote:


```d
void toV(string a,ref vector!string b){
     auto f=File(a,"r");
     while(!f.eof()){
         string l=strip(f.readln());push(b,l);
     }
     Qwk(b);
}//
```

There is an issue with the `vector` here, I don't know why the 
subsequent functions will affect the content of the `vector` here!



More information about the Digitalmars-d-learn mailing list