This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem with malloc_alloc_template


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]