diff --git a/test/test_helper_support.cpp b/test/test_helper_support.cpp index b216543ba..240fffa2c 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);