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:
Andrey Semashev
2025-08-22 00:42:28 +03:00
parent 0fefe9831a
commit 772b55c290

View File

@@ -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