mirror of
https://github.com/boostorg/integer.git
synced 2025-10-08 14:50:54 +02:00
Remove a workaround for MSVC 6.0.
That compiler is too ancient to support. And apparently, recent clang complains about sprintf being deprecated. Closes https://github.com/boostorg/integer/issues/36.
This commit is contained in:
@@ -253,27 +253,6 @@ public:
|
||||
|
||||
}; // std::numeric_limits<MyUnsigned1>
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC,<1300)
|
||||
// MSVC 6.0 lacks operator<< for __int64, see
|
||||
// https://support.microsoft.com/kb/168440/
|
||||
|
||||
inline ostream& operator<<(ostream& os, __int64 i)
|
||||
{
|
||||
char buf[20];
|
||||
sprintf(buf,"%I64d", i);
|
||||
os << buf;
|
||||
return os;
|
||||
}
|
||||
|
||||
inline ostream& operator<<(ostream& os, unsigned __int64 i)
|
||||
{
|
||||
char buf[20];
|
||||
sprintf(buf,"%I64u", i);
|
||||
os << buf;
|
||||
return os;
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace std
|
||||
|
||||
// GCD tests
|
||||
|
Reference in New Issue
Block a user