From 772b55c290d8fc8b9d30b46213e92c661c1a97c6 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Fri, 22 Aug 2025 00:42:28 +0300 Subject: [PATCH] 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. --- test/common_factor_test.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/test/common_factor_test.cpp b/test/common_factor_test.cpp index 9c7eb63..fd94913 100644 --- a/test/common_factor_test.cpp +++ b/test/common_factor_test.cpp @@ -253,27 +253,6 @@ public: }; // std::numeric_limits -#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