mType(type) /* only pass literal strings */ {}
- template <typename T>
+ template <class T>
void operator () (const T& item)
{
*this << item << std::endl;
private:
- template <typename T> friend std::ostream& operator << (Log&, const T&);
+ template <class T> friend std::ostream& operator << (Log&, const T&);
static Level gLevel;
extern Log logInfo;
-template <typename T>
+template <class T>
inline std::ostream& operator << (Log& logObj, const T& item)
{
if (Log::gLevel < logObj.mLevel) return nullLog;