From 4107fa2e6c6e9e7eb8e0d980c08394a197a53a8b Mon Sep 17 00:00:00 2001 From: hieuhoang1972 Date: Mon, 14 Jan 2013 11:22:06 +0000 Subject: minor compile error. http://stackoverflow.com/questions/14016886/mgiza-compile-error --- mgizapp/src/mkcls/myleda.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'mgizapp') 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()); } -- cgit v1.2.3