add IsGaussian template check

release/4.3a0
Varun Agrawal 2022-07-26 07:21:05 -04:00
parent 8ddc2ea989
commit 7a55341e32
1 changed files with 7 additions and 1 deletions

View File

@ -75,8 +75,14 @@ struct EliminationTraits<HybridGaussianFactorGraph> {
* Everything inside needs to be hybrid factor or hybrid conditional.
*/
class GTSAM_EXPORT HybridGaussianFactorGraph
: public HybridFactorGraph,,
: public HybridFactorGraph,
public EliminateableFactorGraph<HybridGaussianFactorGraph> {
protected:
/// Check if FACTOR type is derived from GaussianFactor.
template <typename FACTOR>
using IsGaussian = typename std::enable_if<
std::is_base_of<GaussianFactor, FACTOR>::value>::type;
public:
using Base = HybridFactorGraph;
using This = HybridGaussianFactorGraph; ///< this class