#ifndef NDEBUG
void LOG_INFO(std::ostream& output) {
output << "\n";
}
#else
void LOG_INFO(std::ostream& output) {
output << "";
}
#endif
Trying to implement a basic logging function in debug mode only, is there any way I can make it so that the second defintion doesn't output anything to the standard output? I've tried setting output to various things but I get compile errors. Looking this up just gives me advice on how to flush the buffer which isn't what I want
James Willson was muted
User is already muted