Skip to content

Commit

Permalink
removed C++03 dependency from test
Browse files Browse the repository at this point in the history
  • Loading branch information
robertramey committed Nov 13, 2023
1 parent 9aa208d commit a20c4d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_helper_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ namespace std{
#endif

#include "test_tools.hpp"
#include <boost/lexical_cast.hpp>
#include <boost/serialization/split_free.hpp>
#include <boost/serialization/vector.hpp>
#include <string>
Expand Down Expand Up @@ -108,7 +107,9 @@ int test_main( int /* argc */, char* /* argv */[] ){

std::vector<my_string> v1;
for(int i=0; i<1000; ++i){
v1.push_back(my_string(boost::lexical_cast<std::string>(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);
Expand Down

0 comments on commit a20c4d9

Please sign in to comment.