problem with malloc_alloc_template
Paolo Carlini
paolo.carlini@oracle.com
Tue Mar 24 19:09:00 GMT 2009
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.
More information about the Libstdc++
mailing list