Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mgiza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhieuhoang1972 <hieuhoang1972@9a26d1b7-1c8f-445c-8fdd-6576f508279d>2013-01-14 15:22:06 +0400
committerhieuhoang1972 <hieuhoang1972@9a26d1b7-1c8f-445c-8fdd-6576f508279d>2013-01-14 15:22:06 +0400
commit4107fa2e6c6e9e7eb8e0d980c08394a197a53a8b (patch)
treea2a8ee7cc9293e879c475bb1ec48cc5fe66e2db6
parent991e235b0475779665be29e03f32e89211018529 (diff)
minor compile error. http://stackoverflow.com/questions/14016886/mgiza-compile-error
-rw-r--r--mgizapp/src/mkcls/myleda.h26
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());
}