Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/SemanticError.h

    r3906301 r5f2f2d7  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // SemanticError.h --
     7// SemanticError.h -- 
    88//
    99// Author           : Richard C. Bilson
     
    3131
    3232        void append( SemanticError &other );
    33         void append( const std::string & );
    3433        bool isEmpty() const;
    3534        void print( std::ostream &os );
     
    4342template< typename T >
    4443SemanticError::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() );
    4648}
    47 
    4849
    4950#endif // SEMANTICERROR_H
Note: See TracChangeset for help on using the changeset viewer.