I've got function. If user didn't provide ofstream
element into this function:
bool isPolpierwsza(int, bool = false, ofstream = NULL);
than I want to asign "plik"
bool isPolpierwsza(int liczba, bool wypisz, ofstream plik)
to NULL
value.
My compiler put error:
2.9.cpp:5:48: error: no viable conversion from 'long' to 'ofstream' (aka 'basic_ofstream')
bool isPolpierwsza(int, bool = false, ofstream = NULL);
How to setup default value to ofstream to be treated like NULL
or "false"?