From a20c4d97c37e5f437c8ba78f296830edb79cff9e Mon Sep 17 00:00:00 2001 From: Robert Ramey Date: Sun, 12 Nov 2023 21:05:11 -0800 Subject: [PATCH] removed C++03 dependency from test --- test/test_helper_support.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_helper_support.cpp b/test/test_helper_support.cpp index b216543ba1..240fffa2c3 100644 --- a/test/test_helper_support.cpp +++ b/test/test_helper_support.cpp @@ -21,7 +21,6 @@ namespace std{ #endif #include "test_tools.hpp" -#include #include #include #include @@ -108,7 +107,9 @@ int test_main( int /* argc */, char* /* argv */[] ){ std::vector v1; for(int i=0; i<1000; ++i){ - v1.push_back(my_string(boost::lexical_cast(i % 100))); + char sbuffer[10]; + std::snprintf(sbuffer, sizeof(sbuffer), "%i", i % 100); + v1.push_back(my_string(sbuffer)); } { test_ostream os(testfile, TEST_STREAM_FLAGS);