diff --git a/gtsam/inference/Factor.h b/gtsam/inference/Factor.h index 73ab3607c..d66f6b8ac 100644 --- a/gtsam/inference/Factor.h +++ b/gtsam/inference/Factor.h @@ -77,7 +77,7 @@ namespace gtsam { /** Construct factor from container of keys. This constructor is used internally from derived factor * constructors, either from a container of keys or from a boost::assign::list_of. */ template - Factor(const CONTAINER& keys) : keys_(keys.begin(), keys.end()) {} + explicit Factor(const CONTAINER& keys) : keys_(keys.begin(), keys.end()) {} /** Construct factor from iterator keys. This constructor may be used internally from derived * factor constructors, although our code currently does not use this. */