mirror of
https://github.com/jezhiggins/arabica
synced 2025-02-05 20:45:56 +01:00
vs6 fix
This commit is contained in:
parent
6eb8335603
commit
5e6d988bbb
1 changed files with 10 additions and 0 deletions
|
@ -168,9 +168,14 @@ private:
|
|||
{
|
||||
stringT dest;
|
||||
|
||||
#ifndef ARABICA_VS6_WORKAROUND
|
||||
std::back_insert_iterator<stringT> id(dest);
|
||||
for(typename fromStringT::const_iterator i = str.begin(); i != str.end(); ++i, ++id)
|
||||
*id = static_cast<charT>(*i);
|
||||
#else
|
||||
for(typename fromStringT::const_iterator i = str.begin(); i != str.end(); ++i)
|
||||
dest += static_cast<charT>(*i);
|
||||
#endif
|
||||
|
||||
return dest;
|
||||
} // no_conversion
|
||||
|
@ -273,9 +278,14 @@ private:
|
|||
{
|
||||
toStringT dest;
|
||||
|
||||
#ifndef ARABICA_VS6_WORKAROUND
|
||||
std::back_insert_iterator<toStringT> id(dest);
|
||||
for(typename stringT::const_iterator i = str.begin(); i != str.end(); ++i, ++id)
|
||||
*id = static_cast<toCharT>(*i);
|
||||
#else
|
||||
for(typename stringT::const_iterator i = str.begin(); i != str.end(); ++i)
|
||||
dest += static_cast<toCharT>(*i);
|
||||
#endif
|
||||
|
||||
return dest;
|
||||
} // no_conversion
|
||||
|
|
Loading…
Add table
Reference in a new issue