diff --git a/cpp/ChordalBayesNet.h b/cpp/ChordalBayesNet.h index f4310d6b3..310a49b1c 100644 --- a/cpp/ChordalBayesNet.h +++ b/cpp/ChordalBayesNet.h @@ -56,11 +56,13 @@ public: inline ConditionalGaussian::shared_ptr get (const std::string& key) const { const_iterator cg = nodes.find(key); // get node + assert( cg != nodes.end() ); return cg->second; } inline ConditionalGaussian::shared_ptr operator[](const std::string& key) const { const_iterator cg = nodes.find(key); // get node + assert( cg != nodes.end() ); return cg->second; }