Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/SemanticError.h

    r5f2f2d7 r843054c2  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jun  8 14:38:53 2015
    13 // Update Count     : 4
     12// Last Modified On : Tue May 19 07:22:23 2015
     13// Update Count     : 1
    1414//
    1515
     
    1919#include <exception>
    2020#include <string>
    21 #include <sstream>
     21#include <strstream>
    2222#include <list>
    2323#include <iostream>
     
    4242template< typename T >
    4343SemanticError::SemanticError( const std::string &error, const T *obj ) {
    44         std::ostringstream os;
     44        std::ostrstream os;
    4545        os << "Error: " << error;
    4646        obj->print( os );
    47         errors.push_back( os.str() );
     47        errors.push_back( std::string( os.str(), os.pcount() ) );
    4848}
    4949
Note: See TracChangeset for help on using the changeset viewer.