From a3d0e4f8c8f669fd4c0dac7a193a12148253d4e2 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Thu, 3 May 2012 20:57:19 -0400 Subject: fix for older gcc --- gi/pf/transliterations.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gi/pf') diff --git a/gi/pf/transliterations.cc b/gi/pf/transliterations.cc index 2200715e..b2996f65 100644 --- a/gi/pf/transliterations.cc +++ b/gi/pf/transliterations.cc @@ -118,7 +118,7 @@ struct TransliterationChunkConditionalModel { //double llh = Md::log_beta_density(dd, 10, 3) + Md::log_gamma_density(aa, 1, 1); double llh = //Md::log_beta_density(dd, 1, 1) + Md::log_gamma_density(dd + aa, 1, 1); - typename std::tr1::unordered_map, CCRP_NoTable, boost::hash > >::const_iterator it; + std::tr1::unordered_map, CCRP_NoTable, boost::hash > >::const_iterator it; for (it = r.begin(); it != r.end(); ++it) llh += it->second.log_crp_prob(aa); return llh; @@ -133,7 +133,7 @@ struct TransliterationChunkConditionalModel { }; void ResampleHyperparameters(MT19937* rng) { - typename std::tr1::unordered_map, CCRP_NoTable, boost::hash > >::iterator it; + std::tr1::unordered_map, CCRP_NoTable, boost::hash > >::iterator it; //const unsigned nloop = 5; const unsigned niterations = 10; //DiscountResampler dr(*this); -- cgit v1.2.3