// string #ifndef G__STRING #define G__STRING #ifndef G__STRING_DLL namespace std { #pragma include_noerr } #endif #ifdef __MAKECINT__ namespace std { #include } #else // __MAKECINT__ #pragma ifdef G__STRING_DLL #include std::ostream& operator<<(std::ostream& ost,const std::string& x) { ost << x.c_str() ; return(ost); } std::istream& operator>>(std::istream& ist,std::string& x) { std::string y; //bug workaround, dummy to void bytecode compilation char buf[1001]; ist >> buf; x = buf; return(ist); } #pragma else // G__STRING_DLL namespace std { #include } #ifdef G__BORLAND #include std::ostream& operator<<(std::ostream& ost,const std::string& x) { ost << x.c_str() ; return(ost); } std::istream& operator>>(std::istream& ist,std::string& x) { std::string y; //bug workaround, dummy to void bytecode compilation char buf[1001]; ist >> buf; x = buf; return(ist); } #endif // G__BORLAND #pragma endif // G__STRING_DLL int G__ateval(const std::string& x) { std::cout << "(string 0x" << &x << ")\"" << x << "\"" << std::endl; return(1); } #endif // __MAKECINT__ #endif