I have a header file that I include into my main.cpp file. I want to set some flags when this file is included.
I want to set that automatically how can I do this? I tried:
#ifdef DEFINES_HPP_INCLUDED std::cout.flags(std::ios::boolalpha); #endif //Gives me the error: //error: 'cout' in namespace 'std' does not name a type|
Or better yet, how can I enable that for all streams automatically?