Is there a way to pass output stream as argument like
void foo (std::ofstream dumFile) {}
I tried that but it gave
error : class "std::basic_ofstream<char, std::char_traits<char>>" has no suitable copy constructor
Is there a way to pass output stream as argument like
void foo (std::ofstream dumFile) {}
I tried that but it gave
error : class "std::basic_ofstream<char, std::char_traits<char>>" has no suitable copy constructor