work around previous changes for VC6

This commit is contained in:
jez_higgins 2002-09-20 10:01:18 +00:00
parent f16e2a30fb
commit d640fe6bab

View file

@ -128,7 +128,13 @@ private:
stringT no_conversion(const fromStringT& str)
{
stringT dest;
#ifndef _MSC_VER
std::copy(str.begin(), str.end(), std::back_inserter(dest));
#else
// hack around pre-Standard library
for(fromStringT::const_iterator i = str.begin(); i != str.end(); ++i)
dest += static_cast<charT>(*i);
#endif
return dest;
} // no_conversion
@ -224,8 +230,13 @@ public:
private:
toStringT no_conversion(const stringT& str)
{
stringT dest;
toStringT dest;
#ifndef _MSC_VER
std::copy(str.begin(), str.end(), std::back_inserter(dest));
#else
for(stringT::const_iterator i = str.begin(); i != str.end(); ++i)
dest += static_cast<toCharT>(*i);
#endif
return dest;
} // no_conversion