help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use a constructor of hashsets?


From: Pedro Lamarão
Subject: Re: How to use a constructor of hashsets?
Date: Wed, 11 Jul 2007 19:45:46 -0000
User-agent: G2/1.0

On Jul 11, 1:11 pm, benjamin.bih...@gmx.de wrote:
> Hello,
>
> I am trying to use the constructor of hashsets, that defines the
> minimum bucket size, but it does not compile.
>
> // This line compiles:
> typename __gnu_cxx::hash_set< PointerTemplate, pointerHashFunction,
> pointerEqualityFunction >
>                         m_hsPointerSet;
>
> // This line does not work:
> typename __gnu_cxx::hash_set< PointerTemplate, pointerHashFunction,
> pointerEqualityFunction >
>                         m_hsPointerSet( 10 );
>
> I have tried several casts to size_t but g++ simply won't accept it.
> Could you tell me, what I am doing wrong?

Please provide the compiler version and error message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]