X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Bart van der Velden" Newsgroups: comp.os.msdos.djgpp,comp.lang.c++ References: Subject: Re: Different results of compilation with gpp 2.95.3 and 3.0.4 Date: Thu, 21 Mar 2002 14:17:50 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Lines: 26 Message-ID: <3c99dd7e$0$223$4d4ebb8e@read-nat.news.nl.uu.net> NNTP-Posting-Host: gw-ehv05.pnl.philips.com X-Trace: 1016716670 read-nat.news.nl.uu.net 223 212.153.190.4 X-Complaints-To: abuse AT nl DOT uu DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > #include > #include > #include > using namespace std; > template > string to_string (const T& val_i) > { > ostringstream osstr; > osstr << val_i; > return osstr.str(); > } > > int main() > { > cout << to_string (123) << endl; > return 0; > } > Regards, Bart van der Velden