I use Google C++ Testing Framework for unit testing of my code. I use Eclipse CDT with C++ Unit testing module for output analysis.
Previously I used CppUnit it ha
You should define the below:
static class LOGOUT { public: LOGOUT() {} std::ostream& info() { std::cout << "[info ] "; return std::cout; } } logout;
using this:
logout.info() << "test: " << "log" << std::endl;