Removing some typename keywords which are not allowed on my compiler g++ 4.4.5

release/4.3a0
John Rogers 2011-02-07 17:47:56 +00:00
parent 190a612086
commit 8e27acf27a
1 changed files with 3 additions and 3 deletions

View File

@ -241,7 +241,7 @@ EliminationTree<FACTOR>::eliminate() const {
/* ************************************************************************* */
// Specialization for symbolic elimination that calls the optimized eliminateSymbolic_
template<>
inline typename EliminationTree<IndexFactor>::BayesNet::shared_ptr
inline EliminationTree<IndexFactor>::BayesNet::shared_ptr
EliminationTree<IndexFactor>::eliminate() const {
// call recursive routine
@ -252,8 +252,8 @@ EliminationTree<IndexFactor>::eliminate() const {
// Add conditionals to BayesNet
tic(2, "assemble BayesNet");
typename BayesNet::shared_ptr bayesNet(new BayesNet);
BOOST_FOREACH(const typename BayesNet::sharedConditional& conditional, conditionals) {
BayesNet::shared_ptr bayesNet(new BayesNet);
BOOST_FOREACH(const BayesNet::sharedConditional& conditional, conditionals) {
if(conditional)
bayesNet->push_back(conditional);
}