cvs.gedasymbols.org/archives/browse.cgi | search |
From: | Rolf Magnus <ramagnus AT t-online DOT de> |
Newsgroups: | comp.lang.c++,comp.os.msdos.djgpp,gnu.g++.help |
Subject: | Re: Problem with basic_string |
Followup-To: | comp.lang.c++ |
Date: | Sat, 04 Jan 2003 16:04:27 +0100 |
Organization: | T-Online |
Lines: | 25 |
Message-ID: | <av6r62$vtp$07$3@news.t-online.com> |
References: | <av6mgq$cjiq1$1 AT ID-79865 DOT news DOT dfncis DOT de> <av6n2q$1ct4$1 AT serv3 DOT vsi DOT ru> <av6p7v$ciff4$1 AT ID-79865 DOT news DOT dfncis DOT de> |
Mime-Version: | 1.0 |
X-Trace: | news.t-online.com 1041690626 07 32697 2CaCE5+XbSayoV 030104 14:30:26 |
X-Complaints-To: | abuse AT t-online DOT com |
X-Sender: | 520083208048-0001 AT t-dialin DOT net |
X-Fud-Of-The-Day: | http://www.microsoft.com/windows/Embedded/sak/evaluation/compare/advantage.asp |
X-Newsreader: | GNU Outlook Express 0.00.0000.0001 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Alex Vinokur wrote: >> > >> > int main () >> > { >> > basic_string<string> bs1; >> >> I'm sure you were intended basic_string<char> bs1; > > I intended exactly basic_string<string> bs1; Could you explain why and how you'd want to use a string of strings? Or better, just explain what you want to achieve. > basic_string<T> is a template class. That it's a template doesn't mean that it makes sense (or is possible at all) to instantiate it for every type. > So, I would like to basic_string<string>, basic_string<int>, > basic_string<Any_Class> Why?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |