ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/utils/StringUtils.hpp
(Generate patch)

Comparing trunk/src/utils/StringUtils.hpp (file contents):
Revision 2047 by gezelter, Sun Jun 16 15:15:42 2013 UTC vs.
Revision 2048 by gezelter, Thu Dec 11 21:18:03 2014 UTC

# Line 146 | Line 146 | namespace OpenMD {
146      return ret;
147    }
148  
149 +  template <typename T>
150 +  std::string to_string(T value) {
151 +    std::ostringstream os ;
152 +    os << value ;
153 +    return os.str() ;
154 +  }
155 +
156    bool isInteger(const std::string& str);
157    
158    std::string OpenMD_itoa(int value, unsigned int base = 10);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines