Changes in src/Common/SemanticError.h [3906301:5f2f2d7]
- File:
-
- 1 edited
-
src/Common/SemanticError.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/SemanticError.h
r3906301 r5f2f2d7 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // SemanticError.h -- 7 // SemanticError.h -- 8 8 // 9 9 // Author : Richard C. Bilson … … 31 31 32 32 void append( SemanticError &other ); 33 void append( const std::string & );34 33 bool isEmpty() const; 35 34 void print( std::ostream &os ); … … 43 42 template< typename T > 44 43 SemanticError::SemanticError( const std::string &error, const T *obj ) { 45 append( toString( error, obj ) ); 44 std::ostringstream os; 45 os << "Error: " << error; 46 obj->print( os ); 47 errors.push_back( os.str() ); 46 48 } 47 48 49 49 50 #endif // SEMANTICERROR_H
Note:
See TracChangeset
for help on using the changeset viewer.