Article View: borland.public.cppbuilder.upgrade
Article #2293upgrade and STL
From: Karltarbet
Date: Thu, 24 Feb 2000 00:00
Date: Thu, 24 Feb 2000 00:00
28 lines
1002 bytes
1002 bytes
I just upgraded BCB4 to BCB5.
The following compiles on BCB4 but i can't get it with BCB5.
I'm compiling inside the IDE.
Thanks for any Help.
Karl
--------------------------------------
#include <algorithm>
#include <iterator>
#include <string>
#include <vector>
using namespace std;
stl_unique_copy()
{
vector<string> rval;
vector<string> tmp;
sort(tmp.begin(), tmp.end());
unique_copy(tmp.begin(), tmp.end(),back_inserter(rval));
return 0;
}
---------------------
Technical Details
Message-ID:
<38b5c053@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10529a,9cc768a5d3aff48f,start X-Google-Attributes: gid10529a,public From: "Karltarbet" <ktarbet@pn.usbr.gov> Subject: upgrade and STL Date: 2000/02/24 Message-ID: <38b5c053@dnews> X-Deja-AN: 589534744 Sender: "Karltarbet" <ktarbet@pn.usbr.gov> X-Trace: 24 Feb 2000 15:35:47 -0800, 207.105.83.65 Reply-To: "Karltarbet" <ktarbet@pn.usbr.gov> Newsgroups: borland.public.cppbuilder.upgrade X-User-Info: 140.218.8.27 140.218.8.27