6 Oct
2003
6 Oct
'03
21:39
Hallo, ich habe eine Klassenmethode, die je nach gesetzten Falgs die Ausgabe auf den Bildschirm und/oder in ein File macht: int DebugLog::out( string text ) { // output to console if( log_to_console == true ) { cout << text; } // output to log file if( log_to_file == true ) { file << text; } return 0; } Wie bekomme ich es hin, dass es nicht nur für "string" funktioniert, sondern für alle Typen die "cout" unterstützt? Viele Grüße Bastian