Permalink
Browse files

Replaced i_to_string to fix c11++ incompatibility

  • Loading branch information...
davidepatti committed Jul 4, 2017
1 parent cf727b9 commit 5a18dee17154f4776557252ec00b23b8e363a944
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Utils.h
View
@@ -224,10 +224,10 @@ inline void printMap(string label, const map<string,double> & m,std::ostream & o
out << "];" << endl;
}
inline string i_to_string(int value)
{
return static_cast<ostringstream*>( &(ostringstream() << value) )->str();
template<typename T> std::string i_to_string(const T& t){
std::stringstream s;
s << t;
return s.str();
}
#endif

0 comments on commit 5a18dee

Please sign in to comment.