Article View: comp.std.c++
Article #1667Re: Can STL vectors handle pointers?
From: Graham Glass
Date: Mon, 07 Aug 1995 20:18
Date: Mon, 07 Aug 1995 20:18
25 lines
1474 bytes
1474 bytes
In article <3v36qp$3n6@metro.ucc.su.OZ.AU>, maxtal@Physics.usyd.edu.au (John Max Skaller) says:
>
>In article <3u1jtg$cag@keystone.intergate.net>,
>Benjamin Scherrey <scherrey@proteus-tech.com> wrote:
>>
>>// destroy() and construct() have to be explicitly defined here as
>>// the pointer types do not template well for user-defined classes.
>>//
>>// Is there any way around this?!?!?
> No. It is only a problem because compilers do not yet
>correctly implement
> template<class T> void destroy(T *t) {
> t->~T(); // stuffs up many compilers
YES,there is a way around this, and it's called STL<ToolKit>. This is
the ObjectSpace implementation of STL, and it contains workarounds for
pretty much all of the major compiler limitations. For more information
send email to info@objectspace.com. STL<ToolKit> includes a set of
cross-platform thread & synchronization classes for multi-thread STL
development, as well as a set of helper algorithms that make STL easier
to use.
- Graham
Technical Details
Message-ID:
<405sed$64n@wormhole.objectspace.com>Path:
arc1-ca.pugleaf.net!objectspace.com!rootReferences:
<3tsp4u$b1o@metro.ucc.su.OZ.AU> <3u1jtg$cag@keystone.intergate.net> <3v36qp$3n6@metro.ucc.su.OZ.AU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!objectspace.com!root From: gglass@objectSpace.com (Graham Glass) Newsgroups: comp.std.c++ Subject: Re: Can STL vectors handle pointers? Date: 7 Aug 1995 20:18:21 GMT Organization: ObjectSpace.com Message-ID: <405sed$64n@wormhole.objectspace.com> References: <3tsp4u$b1o@metro.ucc.su.OZ.AU> <3u1jtg$cag@keystone.intergate.net> <3v36qp$3n6@metro.ucc.su.OZ.AU> NNTP-Posting-Host: gglass2 X-Newsreader: WinVN 0.92.6