Re: Lists of pointers
Garry W wrote:
"Tom Widmer [VC++ MVP]" <tom_usenet@hotmail.com> wrote:
Finally, if you really do want a pointer container, than consider
using either a container of shared_ptr, or a boost pointer
container, both available from www.boost.org.
The support in the Boost for non-Unix machines is kind of sketchy...
do you have a VS project and/or config file for Boost that you might
be willing to share?
The vast majority of Boost is headers-only, since most of the libraries in
Boost are templates: there's no need for a project/solution for these.
The other libraries are normally built with bjam, which is obscure and
wierd, but not hard to use once you've run it a couple times. In practice,
you download a new version of boost, run the build-all script, and you're
done. If you add the boost directories to your VS include/lib paths, you
can simply use Boost as if it had been shipped with the compiler. The
libraries that produce .lib and/or .dll files generally include the
necessary preprocessor/compiler incantations to slip in a #pragma
comment(lib, myLibName) so you get automatic library selection, just like
the CRT.
For the regex library in particular, unless he's stopped doing it recently,
John Maddock includes a VC++ project file to build the library, if you'd
prefer than approach. I don't think there are any projects for the other
not-just-templates libraries though, so you'd be on your on for that.
Finally, the boost users mailing list, to which you can subscribe at
http://lists.boost.org is a fountain of information about using Boost. If
something doesn't work for you, just ask - there are lots of people to help
(something in excess of 2000 active participants in the mailing lists).
-cd