Allow Eigen type in typedefs
parent
7fdcc98ea5
commit
1fd0f964ea
|
@ -178,7 +178,7 @@ void Module::parseMarkup(const std::string& data) {
|
||||||
TemplateInstantiationTypedef singleInstantiation;
|
TemplateInstantiationTypedef singleInstantiation;
|
||||||
Rule templateSingleInstantiationArg_p =
|
Rule templateSingleInstantiationArg_p =
|
||||||
(*(namespace_name_p[push_back_a(templateArgValue.namespaces)] >> str_p("::")) >>
|
(*(namespace_name_p[push_back_a(templateArgValue.namespaces)] >> str_p("::")) >>
|
||||||
className_p[assign_a(templateArgValue.name)])
|
(className_p | eigenType_p)[assign_a(templateArgValue.name)])
|
||||||
[push_back_a(singleInstantiation.typeList, templateArgValue)]
|
[push_back_a(singleInstantiation.typeList, templateArgValue)]
|
||||||
[clear_a(templateArgValue)];
|
[clear_a(templateArgValue)];
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
typedef MyTemplate<gtsam::Point2> MyTemplatePoint2;
|
typedef MyTemplate<gtsam::Point2> MyTemplatePoint2;
|
||||||
typedef MyTemplate<gtsam::Point3> MyTemplatePoint3;
|
typedef MyTemplate<gtsam::Point3> MyTemplatePoint3;
|
||||||
typedef MyFactor<gtsam::Pose2, gtsam::Point2> MyFactorPosePoint2;
|
typedef MyFactor<gtsam::Pose2, Matrix> MyFactorPosePoint2;
|
||||||
|
|
||||||
BOOST_CLASS_EXPORT_GUID(gtsam::Point2, "gtsamPoint2");
|
BOOST_CLASS_EXPORT_GUID(gtsam::Point2, "gtsamPoint2");
|
||||||
BOOST_CLASS_EXPORT_GUID(gtsam::Point3, "gtsamPoint3");
|
BOOST_CLASS_EXPORT_GUID(gtsam::Point3, "gtsamPoint3");
|
||||||
|
|
|
@ -124,7 +124,7 @@ class MyFactor {
|
||||||
};
|
};
|
||||||
|
|
||||||
// and a typedef specializing it
|
// and a typedef specializing it
|
||||||
typedef MyFactor<gtsam::Pose2, gtsam::Point2> MyFactorPosePoint2;
|
typedef MyFactor<gtsam::Pose2, Matrix> MyFactorPosePoint2;
|
||||||
|
|
||||||
// comments at the end!
|
// comments at the end!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue