diff options
Diffstat (limited to 'mgizapp/src')
-rw-r--r-- | mgizapp/src/mkcls/myleda.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/mgizapp/src/mkcls/myleda.h b/mgizapp/src/mkcls/myleda.h index 4c2e67b..715f846 100644 --- a/mgizapp/src/mkcls/myleda.h +++ b/mgizapp/src/mkcls/myleda.h @@ -164,20 +164,20 @@ class my_hash public: int operator()(const T&t)const {return Hash(t);} #ifdef WIN32 - enum
- { // parameters for hash table
- bucket_size = 1 // 0 < bucket_size
+ enum + { // parameters for hash table + bucket_size = 1 // 0 < bucket_size }; - my_hash()
- : comp()
- { // construct with default comparator
- }
-
- my_hash(_Pr _Pred)
- : comp(_Pred)
- { // construct with _Pred comparator
+ my_hash() + : comp() + { // construct with default comparator } -protected:
+ + my_hash(_Pr _Pred) + : comp(_Pred) + { // construct with _Pred comparator + } +protected: _Pr comp; public: int operator()(const T&t , const T&t1)const {return comp(t,t1);} @@ -218,7 +218,7 @@ public: typename MY_HASH_BASE::iterator pos=this->find(a); if( pos==this->end() ) { - insert(typename MY_HASH_BASE::value_type(a,init)); + this->insert(typename MY_HASH_BASE::value_type(a,init)); pos=this->find(a); iassert(pos!=this->end()); } |