Original Post
I am working on a routine that loads a script file. The function I am using is getting big so I want to split it up. When I tried to pass the file stream (wifstream) to another function the debug spew says there is no convertion from wifstream to wifstream. Why can't I pass a wifstream between functions. function1(...) { wifstream file(...); ... function2(file); } function2(wifstream file) { ... }