Made constructors explicit

release/4.3a0
Richard Roberts 2012-03-23 03:39:00 +00:00
parent bcd663244a
commit 4205f7d32f
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ public:
}
/** BayesNet with 1 conditional */
BayesNet(const sharedConditional& conditional) { push_back(conditional); }
explicit BayesNet(const sharedConditional& conditional) { push_back(conditional); }
/// @}
/// @name Testable

View File

@ -144,7 +144,7 @@ namespace gtsam {
BayesTree() {}
/** Create a Bayes Tree from a Bayes Net (requires CONDITIONAL is IndexConditional *or* CONDITIONAL::Combine) */
BayesTree(const BayesNet<CONDITIONAL>& bayesNet);
explicit BayesTree(const BayesNet<CONDITIONAL>& bayesNet);
/// @}
/// @name Advanced Constructors