Update of /cvsroot/pclasses/pclasses2/include/pclasses
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8806/include/pclasses
Modified Files:
Trace.h
Log Message:
- Use template parameter in NullTraceStream
Index: Trace.h
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Trace.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Trace.h 7 May 2005 11:56:21 -0000 1.4
+++ Trace.h 20 May 2005 14:19:52 -0000 1.5
@@ -78,36 +78,8 @@
inline NullTraceStream& operator()(const SourceInfo& si)
{ return *this; }
- inline NullTraceStream& operator<<(char ch)
- { return *this; }
-
- inline NullTraceStream& operator<<(const char* str)
- { return *this; }
-
- inline NullTraceStream& operator<<(int16_t val)
- { return *this; }
-
- inline NullTraceStream& operator<<(uint16_t val)
- { return *this; }
-
- inline NullTraceStream& operator<<(int32_t val)
- { return *this; }
-
- inline NullTraceStream& operator<<(uint32_t val)
- { return *this; }
-
- #ifdef PCLASSES_HAVE_64BIT_INT
- inline NullTraceStream& operator<<(int64_t val)
- { return *this; }
-
- inline NullTraceStream& operator<<(uint64_t val)
- { return *this; }
- #endif
-
- inline NullTraceStream& operator<<(const void* ptr)
- { return *this; }
-
- inline NullTraceStream& operator<<(const std::string& str)
+ template <class DummyType>
+ inline NullTraceStream& operator<<(const DummyType&)
{ return *this; }
};
|