Replace blanket inclusion of constructors (giving trouble on Windows) with initializer-list constructor.
parent
a9409ac9e2
commit
98f3c9676f
|
|
@ -86,7 +86,13 @@ namespace gtsam {
|
||||||
/** Default constructor */
|
/** Default constructor */
|
||||||
GaussianFactorGraph() {}
|
GaussianFactorGraph() {}
|
||||||
|
|
||||||
using Base::Base; // Inherit constructors
|
/**
|
||||||
|
* Construct from an initializer lists of GaussianFactor shared pointers.
|
||||||
|
* Example:
|
||||||
|
* GaussianFactorGraph graph = { factor1, factor2, factor3 };
|
||||||
|
*/
|
||||||
|
GaussianFactorGraph(std::initializer_list<sharedFactor> factors) : Base(factors) {}
|
||||||
|
|
||||||
|
|
||||||
/** Construct from iterator over factors */
|
/** Construct from iterator over factors */
|
||||||
template<typename ITERATOR>
|
template<typename ITERATOR>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue