" (for html end line). I want to be able to do this logger<< "blah"<< std::endl; here''s a little code to show how the logger class is structured
class logger
{
std::ofstream mFile;
public:
template<class T0> logger& operator << ( T0 val )
{
mFile<< val;
}
};
Now I tried making a template specialization that takes in a function pointer that''s in the form of a manipulator
typedef std::basic_ostream<TCHAR, std::char_traits<TCHAR> >& (*_manip)(std::basic_ostream<TCHAR, std::char_traits<TCHAR> >&);
but still dont work. Any help would be greatly appreciated