This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: problem with malloc_alloc_template
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Noah Silverman <noah at smartmediacorp dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 24 Mar 2009 20:08:46 +0100
- Subject: Re: problem with malloc_alloc_template
- References: <3039622.201237920742485.JavaMail.noah@iMac-24.local>
Noah Silverman wrote:
> Thanks Paolo,
>
> First off, my apologies for posting to the incorrect list.
>
> I appreciate the information, but still can't seem to get it to cooperate.
>
> I changed the following code:
>
> OLD:
> -------------------------------
> std::set< HASH64, less<HASH64>, __malloc_allocator_template<0> >
> *startURLs;
> -------------------------------
>
> NEW:
> --------------------------------
> std:set<HASH64, less<HASH64> >*startURLs;
> ---------------------------------
>
> I get a bunch of errors when I compile:
> -----------------------------------
> expected primary-expression before '*' token
> 'startURLs' was not declared in this scope
> ISO C++ forbids declaration of 'std' with no type
> --------------------------------------
Frankly, no idea. The above, given the context you provided, must work.
Also, no need to be explicitly about less, because it's the default.
This *must* work:
std:set<HASH64> *startURLs;
Of course you have to implement this change consistently: *nowhere* in
your code shall appear __malloc_alloc_template<0>.
Paolo.