delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | "Bart van der Velden" <removethis DOT bart DOT van DOT der DOT velden AT philips DOT com> |
Newsgroups: | comp.os.msdos.djgpp,comp.lang.c++ |
References: | <a7cg8d$k6fmh$1 AT ID-79865 DOT news DOT dfncis DOT de> |
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 <iostream> > #include <string> > #include <sstream> > using namespace std; > template <typename T> > 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |