Fixed compiler error with VC++6.

This commit is contained in:
Vincent Richard 2005-04-14 16:52:42 +00:00
parent 3459549181
commit 0d024d2bf3

View File

@ -27,6 +27,10 @@
#include "vmime/types.hpp"
#if defined(_MSC_VER) && (_MSC_VER <= 1200) // VC++6
# include <cstring>
#endif
namespace vmime {
namespace utility {
@ -115,6 +119,16 @@ outputStream& operator<<(outputStream& os, const string& str);
outputStream& operator<<(outputStream& os, const stream::value_type c);
#if defined(_MSC_VER) && (_MSC_VER <= 1200) // Internal compiler error with VC++6
inline outputStream& operator<<(outputStream& os, const char* str)
{
os.write(str, ::strlen(str));
return (os);
}
#else
template <int N>
outputStream& operator<<(outputStream& os, const char (&str)[N])
{
@ -122,6 +136,8 @@ outputStream& operator<<(outputStream& os, const char (&str)[N])
return (os);
}
#endif // defined(_MSC_VER) && (_MSC_VER <= 1200)
template <typename T>
outputStream& operator<<(outputStream& os, const T& t)