Skip to content

Commit

Permalink
Fixed stringstream repeated usage issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMirzayanov committed Jul 30, 2018
1 parent 0c7a5a5 commit d2880ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* Copyright (c) 2005-2018
*/

#define VERSION "0.9.20"
#define VERSION "0.9.21"

/*
* Mike Mirzayanov
Expand Down Expand Up @@ -63,6 +63,7 @@
*/

const char* latestFeatures[] = {
"Fixed stringstream repeated usage issue",
"Fixed compilation in g++ (for std=c++03)",
"Batch of println functions (support collections, iterator ranges)",
"Introduced rnd.perm(size, first = 0) to generate a `first`-indexed permutation",
Expand Down Expand Up @@ -2277,6 +2278,7 @@ static std::string vtos(const T& t, std::false_type)
std::string s;
static std::stringstream ss;
ss.str(std::string());
ss.clear();
ss << t;
ss >> s;
return s;
Expand All @@ -2294,6 +2296,7 @@ static std::string vtos(const T& t)
std::string s;
static std::stringstream ss;
ss.str(std::string());
ss.clear();
ss << t;
ss >> s;
return s;
Expand Down

0 comments on commit d2880ce

Please sign in to comment.