- File:
-
- 1 edited
-
src/ControlStruct/LabelGenerator.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/LabelGenerator.cc
rde62360d r843054c2 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jun 23 12:18:34 201513 // Update Count : 1312 // Last Modified On : Tue May 19 15:32:04 2015 13 // Update Count : 2 14 14 // 15 15 16 16 #include <iostream> 17 #include <s stream>17 #include <strstream> 18 18 19 19 #include "LabelGenerator.h" … … 29 29 } 30 30 31 Label LabelGenerator::newLabel( std::string suffix ) { 32 std::ostringstream os; 33 os << "__L" << current++ << "__" << suffix; 34 std::string ret = os.str(); 31 Label LabelGenerator::newLabel() { 32 std::ostrstream os; 33 os << "__L" << current++ << "__";// << std::ends; 34 os.freeze( false ); 35 std::string ret = std::string (os.str(), os.pcount()); 35 36 return Label( ret ); 36 37 }
Note:
See TracChangeset
for help on using the changeset viewer.