[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to use a constructor of hashsets?
From: |
benjamin . bihler |
Subject: |
How to use a constructor of hashsets? |
Date: |
Wed, 11 Jul 2007 09:11:13 -0700 |
User-agent: |
G2/1.0 |
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?
Thank you very much and bye,
Benjamin Bihler
- How to use a constructor of hashsets?,
benjamin . bihler <=