Changes in src/Common/SemanticError.h [5f2f2d7:843054c2]
- File:
-
- 1 edited
-
src/Common/SemanticError.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/SemanticError.h
r5f2f2d7 r843054c2 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jun 8 14:38:53 201513 // Update Count : 412 // Last Modified On : Tue May 19 07:22:23 2015 13 // Update Count : 1 14 14 // 15 15 … … 19 19 #include <exception> 20 20 #include <string> 21 #include <s stream>21 #include <strstream> 22 22 #include <list> 23 23 #include <iostream> … … 42 42 template< typename T > 43 43 SemanticError::SemanticError( const std::string &error, const T *obj ) { 44 std::ostr ingstream os;44 std::ostrstream os; 45 45 os << "Error: " << error; 46 46 obj->print( os ); 47 errors.push_back( os.str() );47 errors.push_back( std::string( os.str(), os.pcount() ) ); 48 48 } 49 49
Note:
See TracChangeset
for help on using the changeset viewer.