From a0975e3afc4c7c805cb390bc2adfb4d16137dd3e Mon Sep 17 00:00:00 2001 From: v4hn Date: Tue, 18 Aug 2020 21:13:51 +0200 Subject: [PATCH] avoid ambiguity of setCostTerm(nullptr) --- core/include/moveit/task_constructor/stage.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/include/moveit/task_constructor/stage.h b/core/include/moveit/task_constructor/stage.h index 9a40cf69..510d6070 100644 --- a/core/include/moveit/task_constructor/stage.h +++ b/core/include/moveit/task_constructor/stage.h @@ -220,6 +220,8 @@ public: */ void setCostTerm(const CostTerm& term); void setCostTerm(const CostTermShort& term); + // avoid overloading ambiguity for resetting the cost term + void setCostTerm(const std::nullptr_t) { setCostTerm(static_cast(nullptr)); } const ordered& solutions() const; const std::list& failures() const;