clang: use template keyword on template methods

avoids tons of warnings

Issue #3022
This commit is contained in:
Alexander Boettcher 2018-10-25 08:38:06 +02:00 committed by Christian Helmuth
parent 886619f63e
commit f53a56982c
2 changed files with 4 additions and 4 deletions

View File

@ -65,12 +65,12 @@ class Genode::Id_space : public Noncopyable
void _for_each(FUNC const &fn) const
{
if (Avl_node<Element>::child(Avl_node_base::LEFT))
Avl_node<Element>::child(Avl_node_base::LEFT)->_for_each<ARG>(fn);
Avl_node<Element>::child(Avl_node_base::LEFT)->template _for_each<ARG>(fn);
fn(static_cast<ARG &>(_obj));
if (Avl_node<Element>::child(Avl_node_base::RIGHT))
Avl_node<Element>::child(Avl_node_base::RIGHT)->_for_each<ARG>(fn);
Avl_node<Element>::child(Avl_node_base::RIGHT)->template _for_each<ARG>(fn);
}
public:

View File

@ -189,13 +189,13 @@ class Genode::Rpc_client : public RPC_INTERFACE
template <typename IF, typename... ARGS>
typename IF::Ret_type call(ARGS &&...args)
{
return _cap.call<IF>(args...);
return _cap.template call<IF>(args...);
}
template <typename IF, typename... ARGS>
typename IF::Ret_type call(ARGS &&...args) const
{
return _cap.call<IF>(args...);
return _cap.template call<IF>(args...);
}
/**