diff --git a/gtsam/hybrid/HybridGaussianProductFactor.h b/gtsam/hybrid/HybridGaussianProductFactor.h index 17d9238dd7..ab15fee303 100644 --- a/gtsam/hybrid/HybridGaussianProductFactor.h +++ b/gtsam/hybrid/HybridGaussianProductFactor.h @@ -58,7 +58,10 @@ class GTSAM_EXPORT HybridGaussianProductFactor /// Deleted constructor since we don't have istream operator for /// GaussianFactorGraphValuePair HybridGaussianProductFactor(const std::vector& labelCs, - const std::string& table) = delete; + const std::string& table) { + throw std::runtime_error( + "HybridGaussianProductFactor: No way to construct."); + } ///@}