From e1e0591b3883f395654b057fba8af5da34ac84f6 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Tue, 3 Sep 2013 13:51:21 +0000 Subject: [PATCH] Added 'explicit' --- gtsam/inference/Factor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */