Hello,

 [EMAIL PROTECTED] wrote:

> #include <ext/hash_set>
> 
> 
> template<class PointerTemplate> class CTWTHashSet
> {
> 
> public:
> 
> CTWTHashSet(void);
> ~CTWTHashSet(void);
> 
> private:
> 
> class pointerEqualityFunction
> {

> };
> 
> class pointerHashFunction
> {

> };
> 
> __gnu_cxx::hash_set< PointerTemplate, pointerHashFunction,
> pointerEqualityFunction >
> m_hsPointerSet( 10 );
> };

Seriously, you should read in a C++ text book howto initialize class
members. Move the ( 10 ); from here to the initializer list in the
c'tor below. Did you do a lot of Java, before? It is quite different in
those aspects.

> 
> template<class PointerTemplate>
> CTWTHashSet<PointerTemplate>::CTWTHashSet()

: m_hsPointerSet( 10 )

> {
> }


Bernd Strieder

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to