Hi,
I have this overloaded method, that I want to add as an operation,
which RTT doesn't like apparently:
error: no matching function for call to ‘iTaSC::SceneLuaPriorities::addOperation(const char [24], <unresolved overloaded function type>, iTaSC::SceneLuaPriorities* const,
RTT::ExecutionThread)’
Here are my methods: (the first has this virtualLinkName, the second doesn't)
bool addConstraintController(const std::string& PeerName, const std::string& Object1, const std::string& Object2, const std::string& virtualLinkName, const int
PriorityFromBag);
bool addConstraintController(const std::string& PeerName, const std::string& Object1, const std::string& Object2, const int PriorityFromBag);
Is there a way to add this as 1 operation in RTT?
Thanks!
Nick
operation overloading
2011/7/27 Dominick Vanthienen <dominick [dot] vanthienen [..] ...>:
> Hi,
>
> I have this overloaded method, that I want to add as an operation,
> which RTT doesn't like apparently:
> error: no matching function for call to ‘iTaSC::SceneLuaPriorities::addOperation(const char [24], <unresolved overloaded function type>, iTaSC::SceneLuaPriorities* const,
> RTT::ExecutionThread)’
>
> Here are my methods: (the first has this virtualLinkName, the second doesn't)
> bool addConstraintController(const std::string& PeerName, const std::string& Object1, const std::string& Object2, const std::string& virtualLinkName, const int
> PriorityFromBag);
> bool addConstraintController(const std::string& PeerName, const std::string& Object1, const std::string& Object2, const int PriorityFromBag);
>
> Is there a way to add this as 1 operation in RTT?
It's currently not possible to overload operations in RTT, AFAIK, so
you'll have to give the operations different names....
Steven
> Thanks!
>
> Nick
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>
operation overloading
On 07/27/2011 09:33 AM, Dominick Vanthienen wrote:
> Hi,
>
> I have this overloaded method, that I want to add as an operation,
> which RTT doesn't like apparently:
> error: no matching function for call to ‘iTaSC::SceneLuaPriorities::addOperation(const char [24],<unresolved overloaded function type>, iTaSC::SceneLuaPriorities* const,
> RTT::ExecutionThread)’
>
> Here are my methods: (the first has this virtualLinkName, the second doesn't)
> bool addConstraintController(const std::string& PeerName, const std::string& Object1, const std::string& Object2, const std::string& virtualLinkName, const int
> PriorityFromBag);
> bool addConstraintController(const std::string& PeerName, const std::string& Object1, const std::string& Object2, const int PriorityFromBag);
>
> Is there a way to add this as 1 operation in RTT?
The answer from Peter:
No
You have to select one of the methods for the operation:eg.
this->addOperation("addConstraintController", (bool (SceneLuaPriorities::*)(const string&, const string&, const string&, const string&, const
int))&SceneLuaPriorities::addConstraintController, this, ClientThread) .doc("blabla");
> Thanks!
>
> Nick