Changeset 1026 for cpp/common
- Timestamp:
- 11/26/20 01:10:49 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd_math.cpp
r1001 r1026 26 26 ss << x; 27 27 str = ss.str(); 28 char *s = str.data(); //now we will be operating directly on the internal std::string buffer 28 char *s = 29 #ifdef __BORLANDC__ //embarcadero 10.3u3 compiler does not support char* str.data() even in C++17 mode? 30 (char*) 31 #endif 32 str.data(); //now we will be operating directly on the internal std::string buffer 29 33 for (int i = str.length() - 1, end = str.length(); i >= 0; i--) //remove trailing zeros, and maybe also '.' 30 34 {
Note: See TracChangeset
for help on using the changeset viewer.