Hello, [EMAIL PROTECTED] 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? The typename is not necessary in this case. It is truely irritating that one case seems to work, but the other not. If that does not help, please provide minimal code for reproducing the problem. Copy the code to a fresh directory. Strip all uneccesary class members, merge files. A screenful of code should suffice to demonstrate the problem and resolve it. Bernd Strieder _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus